diff options
author | Case Duckworth | 2020-09-19 13:21:05 -0500 |
---|---|---|
committer | Case Duckworth | 2020-09-19 13:21:05 -0500 |
commit | df389b5c3d7d29e2ef0b337c6800ea63fa292453 (patch) | |
tree | b7cd44a5f232ac399cdcc9889628ae2dee5bb3ff | |
parent | Use variable-pitch-mode with elpher (diff) | |
download | emacs-df389b5c3d7d29e2ef0b337c6800ea63fa292453.tar.gz emacs-df389b5c3d7d29e2ef0b337c6800ea63fa292453.zip |
Configure eshell
-rw-r--r-- | init.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/init.el b/init.el index 4ea72ee..c6b1ab1 100644 --- a/init.el +++ b/init.el | |||
@@ -579,6 +579,26 @@ | |||
579 | (circe-originator-face ((t (:weight bold)))) | 579 | (circe-originator-face ((t (:weight bold)))) |
580 | (circe-prompt-face ((t (:inherit 'circe-my-message-face))))) | 580 | (circe-prompt-face ((t (:inherit 'circe-my-message-face))))) |
581 | 581 | ||
582 | (use-package eshell | ||
583 | :init | ||
584 | (defun eshell/emacs (&rest args) | ||
585 | "Open a file in emacs." | ||
586 | (if (null args) | ||
587 | (bury-buffer) | ||
588 | (mapc #'find-file | ||
589 | (mapcar #'expand-file-name | ||
590 | (eshell-flatten-list (reverse args)))))) | ||
591 | (defun eshell/info (&optional subject) | ||
592 | "Invoke `info', optionally opening Info to SUBJECT." | ||
593 | (require 'cl) | ||
594 | (let ((buf (current-buffer))) | ||
595 | (Info-directory) | ||
596 | (if (not (null subject)) | ||
597 | (let ((node-exists (ignore-errors (Info-menu subject)))) | ||
598 | (if (not node-exists) | ||
599 | (format "No menu item `%s' in node `(dir)Top'." | ||
600 | subject))))))) | ||
601 | |||
582 | (use-package eshell-syntax-highlighting | 602 | (use-package eshell-syntax-highlighting |
583 | :after esh-mode | 603 | :after esh-mode |
584 | :config | 604 | :config |