summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-02-08 16:50:43 -0600
committerCase Duckworth2021-02-08 16:50:43 -0600
commit6c16b8bb9a66dc61ce5ead8f431e30ce7f28f2f2 (patch)
tree4327c9746a910a8891892467add2949bae381d25
parentAdd feeds; change tags (diff)
downloademacs-6c16b8bb9a66dc61ce5ead8f431e30ce7f28f2f2.tar.gz
emacs-6c16b8bb9a66dc61ce5ead8f431e30ce7f28f2f2.zip
Add eshell map
-rw-r--r--config.org22
1 files changed, 22 insertions, 0 deletions
diff --git a/config.org b/config.org index 2f6daf4..06d7844 100644 --- a/config.org +++ b/config.org
@@ -2238,6 +2238,28 @@ others.
2238 (require 'gemini-write)) 2238 (require 'gemini-write))
2239#+end_src 2239#+end_src
2240 2240
2241** Eshell
2242
2243I use =eshell= with Emacs, because it works both on Windows and Linux.
2244
2245*** Open an eshell or bury its buffer
2246
2247adapted from [[https://git.sr.ht/~zge/setup][zge's setup]], which might also be an interesting macro to look into
2248one day.
2249
2250#+begin_src emacs-lisp :noweb-ref functions
2251 (defun acdw/eshell-or-bury ()
2252 "Start an `eshell', or bury its buffer if focused."
2253 (interactive)
2254 (if (string= (buffer-name) "*eshell*") ;; XXX: brittle
2255 (bury-buffer)
2256 (eshell)))
2257#+end_src
2258
2259#+begin_src emacs-lisp :noweb-ref bindings
2260 (define-key acdw/leader "s" #'acdw/eshell-or-bury)
2261#+end_src
2262
2241* Org mode :package: 2263* Org mode :package:
2242 2264
2243** Install it with =straight.el= 2265** Install it with =straight.el=