Add with-editor to use current emacs when $EDITOR is used
This commit is contained in:
parent
597e00a584
commit
3ceea10587
1 changed files with 13 additions and 0 deletions
13
config.org
13
config.org
|
|
@ -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)
|
||||
#+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
|
||||
|
||||
Minor-mode to easily resize frames (works with EXWM (firefox, ...)).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue