Set up compilation-shell-minor-mode
This commit is contained in:
parent
dcdc8f6dc8
commit
26c19456e8
@ -2681,6 +2681,12 @@ A function to properly clear the eshell:
|
||||
(lambda () (general-def eshell-mode-map "C-c C-o" #'clear-eshell)))
|
||||
#+END_SRC
|
||||
|
||||
Compilation-shell-minor-mode:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'eshell-mode-hook #'compilation-shell-minor-mode)
|
||||
#+END_SRC
|
||||
|
||||
|
||||
** Prompt
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun jdormit-eshell-prompt ()
|
||||
@ -6324,6 +6330,8 @@ A better terminal emulator for Emacs. Replaces ansi-term, not EShell.
|
||||
(with-eval-after-load 'em-term
|
||||
(defun eshell-exec-visual (&rest args)
|
||||
(apply #'eshell-exec-in-vterm args)))
|
||||
:config
|
||||
(add-hook 'vterm-mode-hook #'compilation-shell-minor-mode)
|
||||
:commands (vterm vterm-other-window vterm-mode)
|
||||
:general
|
||||
(vterm-mode-map "M-\\" #'vterm-send-interactively))
|
||||
@ -6458,6 +6466,14 @@ Set up some keybindings for Comint-mode compilation buffers:
|
||||
(general-def (normal visual motion) compilation-shell-minor-mode-map "gr" #'recompile)
|
||||
#+END_SRC
|
||||
|
||||
Recognize text of the form <filename>:<line number> as a compilation
|
||||
error:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'compile
|
||||
(add-to-list 'compilation-error-regexp-alist '("\\(.+\\):\\([[:digit:]]+\\)$" 1 2)))
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* Wallabag
|
||||
[[https://github.com/jdormit/emacs-wallabag-client][My Wallabag client]] is still a WIP, but it is useful enough to pull in right now:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
Loading…
Reference in New Issue
Block a user