about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-09-19 13:25:28 -0500
committerCase Duckworth2020-09-19 13:25:28 -0500
commit7755db280528910e90bcc7988258a549403a248f (patch)
treeb92e3a1b06a1e7ba2fb544fe546b6feeac2c49ee
parentConfigure org-mode (diff)
parentConfigure eshell (diff)
downloademacs-7755db280528910e90bcc7988258a549403a248f.tar.gz
emacs-7755db280528910e90bcc7988258a549403a248f.zip
Merge branch 'master' of https://git.sr.ht/~acdw/.emacs.d into master
-rw-r--r--init.el23
1 files changed, 22 insertions, 1 deletions
diff --git a/init.el b/init.el index 4f355fd..bb3fff1 100644 --- a/init.el +++ b/init.el
@@ -368,7 +368,8 @@
368 ("n" . elpher-next-link) 368 ("n" . elpher-next-link)
369 ("p" . elpher-prev-link) 369 ("p" . elpher-prev-link)
370 ("o" . elpher-follow-current-link) 370 ("o" . elpher-follow-current-link)
371 ("G" . elpher-go-current))) 371 ("G" . elpher-go-current))
372 :hook (elpher-mode-hook . variable-pitch-mode))
372 373
373(use-package gemini-mode 374(use-package gemini-mode
374 :straight (gemini-mode 375 :straight (gemini-mode
@@ -580,6 +581,26 @@
580 581
581;;; eshell 582;;; eshell
582 583
584(use-package eshell
585 :init
586 (defun eshell/emacs (&rest args)
587 "Open a file in emacs."
588 (if (null args)
589 (bury-buffer)
590 (mapc #'find-file
591 (mapcar #'expand-file-name
592 (eshell-flatten-list (reverse args))))))
593 (defun eshell/info (&optional subject)
594 "Invoke `info', optionally opening Info to SUBJECT."
595 (require 'cl)
596 (let ((buf (current-buffer)))
597 (Info-directory)
598 (if (not (null subject))
599 (let ((node-exists (ignore-errors (Info-menu subject))))
600 (if (not node-exists)
601 (format "No menu item `%s' in node `(dir)Top'."
602 subject)))))))
603
583(use-package eshell-syntax-highlighting 604(use-package eshell-syntax-highlighting
584 :after esh-mode 605 :after esh-mode
585 :config 606 :config