diff options
author | Case Duckworth | 2021-02-08 16:50:43 -0600 |
---|---|---|
committer | Case Duckworth | 2021-02-08 16:50:43 -0600 |
commit | 6c16b8bb9a66dc61ce5ead8f431e30ce7f28f2f2 (patch) | |
tree | 4327c9746a910a8891892467add2949bae381d25 | |
parent | Add feeds; change tags (diff) | |
download | emacs-6c16b8bb9a66dc61ce5ead8f431e30ce7f28f2f2.tar.gz emacs-6c16b8bb9a66dc61ce5ead8f431e30ce7f28f2f2.zip |
Add eshell map
-rw-r--r-- | config.org | 22 |
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 | |||
2243 | I use =eshell= with Emacs, because it works both on Windows and Linux. | ||
2244 | |||
2245 | *** Open an eshell or bury its buffer | ||
2246 | |||
2247 | adapted from [[https://git.sr.ht/~zge/setup][zge's setup]], which might also be an interesting macro to look into | ||
2248 | one 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= |