Skip to content

Commit

Permalink
new command for adding source file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpeck committed Feb 9, 2025
1 parent 1690061 commit 3d4291b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hog.el
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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3d4291b

Please sign in to comment.