diff options
Diffstat (limited to 'emacs.org')
-rwxr-xr-x | emacs.org | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |