diff --git a/ha-eshell.org b/ha-eshell.org index ace623d..82e2cc8 100644 --- a/ha-eshell.org +++ b/ha-eshell.org @@ -1084,8 +1084,9 @@ This function simply calls [[help-org-capture][org-capture]] with [[info:org#Tem #+end_src And finally, add our new functions to [[elisp(describe-variable 'eshell-virtual-targets)][eshell-virtual-targets]]: #+begin_src emacs-lisp - (add-to-list 'eshell-virtual-targets '("/dev/e" ha-eshell-target-engineering-notebook nil)) - (add-to-list 'eshell-virtual-targets '("/dev/c" ha-eshell-target-engineering-notebook nil)) + (with-eval-after-load "eshell" + (add-to-list 'eshell-virtual-targets '("/dev/e" ha-eshell-target-engineering-notebook nil)) + (add-to-list 'eshell-virtual-targets '("/dev/c" ha-eshell-target-engineering-notebook nil))) #+end_src * Special Prompt Following [[http://blog.liangzan.net/blog/2012/12/12/customizing-your-emacs-eshell-prompt/][these instructions]], we build a better prompt with the Git branch in it (Of course, it matches my Bash prompt). First, we need a function that returns a string with the Git branch in it, e.g. ":master"