summaryrefslogtreecommitdiff
path: root/emacs.org
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-20 14:41:26 +0300
committerThanos Apollo <[email protected]>2023-08-20 14:41:26 +0300
commita332ea6dedc5e9d10a75d893211bd6a3e2f5636b (patch)
tree82bad48aafdf6f62cd0e638d17e189d523b87f29 /emacs.org
parentd7a51dd54060676203e0551060bf222e2c9ea16b (diff)
emacs: update eshell aliases
Diffstat (limited to 'emacs.org')
-rwxr-xr-xemacs.org12
1 files changed, 10 insertions, 2 deletions
diff --git a/emacs.org b/emacs.org
index 01d2e2d..9ade990 100755
--- a/emacs.org
+++ b/emacs.org
@@ -1045,13 +1045,21 @@ Create function to watch videos using ~mpv~
(gl . magit-log)
(d . dired)
(o . find-file)
- (oo . find-file-other-window)))
+ (oo . find-file-other-window)
+ (ls . "ls -la")))
;; Define aliases using `mapcar`
(mapc (lambda (alias)
- (defalias (car alias) (cdr alias)))
+ (let ((alias-name (if (symbolp (car alias))
+ (symbol-name (car alias))
+ (car alias)))
+ (alias-value (if (symbolp (cdr alias))
+ (symbol-name (cdr alias))
+ (cdr alias))))
+ (eshell/alias alias-name alias-value)))
thanos/eshell-aliases)
+
;; PATH
(defvar eshell-path-env (getenv "~/.local/bin"))
#+end_src