about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el20
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