summaryrefslogtreecommitdiff
path: root/emacs.org
diff options
context:
space:
mode:
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