about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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=