(Emacs)~minor changes
This commit is contained in:
@@ -2091,6 +2091,8 @@ and when I don't.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:commands (flycheck-mode flycheck-list-errors)
|
:commands (flycheck-mode flycheck-list-errors)
|
||||||
|
:hook
|
||||||
|
(prog-mode-hook . flycheck-mode)
|
||||||
:general
|
:general
|
||||||
(leader
|
(leader
|
||||||
"tf" #'flycheck-mode
|
"tf" #'flycheck-mode
|
||||||
@@ -2125,6 +2127,7 @@ Colourising the compilation buffer so ANSI colour codes get computed.
|
|||||||
:config
|
:config
|
||||||
(defun +compile/colourise ()
|
(defun +compile/colourise ()
|
||||||
"Colourise the emacs compilation buffer."
|
"Colourise the emacs compilation buffer."
|
||||||
|
(interactive)
|
||||||
(let ((inhibit-read-only t))
|
(let ((inhibit-read-only t))
|
||||||
(ansi-color-apply-on-region (point-min) (point-max))))
|
(ansi-color-apply-on-region (point-min) (point-max))))
|
||||||
(add-hook 'compilation-filter-hook #'+compile/colourise))
|
(add-hook 'compilation-filter-hook #'+compile/colourise))
|
||||||
@@ -2173,6 +2176,7 @@ There is no proper PDF viewing without this package.
|
|||||||
(display-buffer-same-window)
|
(display-buffer-same-window)
|
||||||
(inhibit-duplicate-buffer . t))
|
(inhibit-duplicate-buffer . t))
|
||||||
:config
|
:config
|
||||||
|
(pdf-tools-install-noverify)
|
||||||
(with-eval-after-load "evil-collection"
|
(with-eval-after-load "evil-collection"
|
||||||
(evil-collection-pdf-setup)))
|
(evil-collection-pdf-setup)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
Reference in New Issue
Block a user