Add with-editor to use current emacs when $EDITOR is used

This commit is contained in:
laurensmiers 2019-09-09 13:11:25 +02:00
parent 597e00a584
commit 3ceea10587

View file

@ -86,6 +86,19 @@ Courtesy goes to https://joelmccracken.github.io/entries/switching-between-term-
(define-key term-raw-map (kbd "C-c C-k") 'jnm/term-toggle-mode) (define-key term-raw-map (kbd "C-c C-k") 'jnm/term-toggle-mode)
#+END_SRC #+END_SRC
** With editor
This will ensure things/commands/... called in eshell/shell that use $EDITOR, will use the current Emacs.
#+BEGIN_SRC emacs-lisp
(use-package with-editor
:ensure t
:commands with-editor-export-editor
:init
(progn
(add-hook 'shell-mode-hook 'with-editor-export-editor)
(add-hook 'eshell-mode-hook 'with-editor-export-editor)))
#+END_SRC
* Resize frame * Resize frame
Minor-mode to easily resize frames (works with EXWM (firefox, ...)). Minor-mode to easily resize frames (works with EXWM (firefox, ...)).