Add function to run any program visually

This commit is contained in:
Jeremy Dormitzer 2019-08-12 11:25:47 -04:00
parent e2e6cfc798
commit 247f230d3f

View File

@ -1067,11 +1067,16 @@ Visual programs:
(add-hook 'eshell-mode-hook #'eshell-setup)
#+END_SRC
And a function to run any program visually:
#+BEGIN_SRC emacs-lisp
(defun eshell/v (&rest args)
(apply #'eshell-exec-visual args))
#+END_SRC
Load .dir-locals.el when switching directories:
#+BEGIN_SRC emacs-lisp
(add-hook 'eshell-mode-hook #'hack-dir-local-variables-non-file-buffer)
(add-hook 'eshell-directory-change-hook #'hack-dir-local-variables-non-file-buffer)
#+END_SRC
Some aliases: