-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1690061
commit 3d4291b
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; hog.el --- Functions for working with Hog -*- lexical-binding: t; -*- | ||
;; | ||
;; Copyright (C) 2021-2024 Andrew Peck | ||
;; Copyright (C) 2021-2025 Andrew Peck | ||
|
||
;; Author: Andrew Peck <[email protected]> | ||
;; URL: https://github.com/andrewpeck/hog-emacs | ||
|
@@ -470,6 +470,11 @@ The resulting list is of the form: | |
(find-file (file-name-directory | ||
(car (file-expand-wildcards file-with-path))))))) | ||
|
||
(defun hog-add-src-file () | ||
"Add a source file in the current project." | ||
(interactive) | ||
(insert (completing-read "File: " (split-string (shell-command-to-string "git ls-files --full-name :/*.vhd :/*.vhd :/*.sv :/*.v :/*.svh :/*.src :/*.xdc :/*.tcl"))))) | ||
|
||
;;;###autoload | ||
(defun hog-expand-glob-at-point () | ||
"Unglob a globbed entry in a source file. | ||
|