summaryrefslogtreecommitdiff
path: root/emacs.org
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-20 15:01:51 +0300
committerThanos Apollo <[email protected]>2023-08-20 15:01:51 +0300
commit97fb80d3174e6f21478b680ae355dd504f3131d6 (patch)
tree3252827f4f7622250c67145934f3dbd5818a1c1c /emacs.org
parenta332ea6dedc5e9d10a75d893211bd6a3e2f5636b (diff)
emacs: update eshell aliases
Diffstat (limited to 'emacs.org')
-rwxr-xr-xemacs.org14
1 files changed, 4 insertions, 10 deletions
diff --git a/emacs.org b/emacs.org
index 9ade990..4b23b59 100755
--- a/emacs.org
+++ b/emacs.org
@@ -1044,22 +1044,16 @@ Create function to watch videos using ~mpv~
'((g . magit)
(gl . magit-log)
(d . dired)
- (o . find-file)
+ (o . find-file)
(oo . find-file-other-window)
- (ls . "ls -la")))
+ (ls . (lambda () (eshell/ls '-la)))
+ (ll . (lambda () (eshell/ls)))))
;; Define aliases using `mapcar`
(mapc (lambda (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)))
+ (defalias (car alias) (cdr alias)))
thanos/eshell-aliases)
-
;; PATH
(defvar eshell-path-env (getenv "~/.local/bin"))
#+end_src