ADD angry faces face to major prog modes
This commit is contained in:
parent
78afc078ff
commit
d5f79bf639
1 changed files with 22 additions and 0 deletions
|
|
@ -533,6 +533,28 @@ https://github.com/victorhge/iedit
|
|||
|
||||
* Programming
|
||||
|
||||
** Angry faces
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defface highlight-angry-faces
|
||||
'(
|
||||
(default :background "Yellow" :foreground "Red")
|
||||
)
|
||||
"Angry faces highlighting."
|
||||
:group 'basic-faces
|
||||
)
|
||||
|
||||
(mapc (lambda (mode)
|
||||
(font-lock-add-keywords
|
||||
mode
|
||||
'(
|
||||
("\\<\\(FIXME\\)" 1 'highlight-angry-faces t)
|
||||
("\\<\\(TODO\\)" 1 'highlight-angry-faces t)
|
||||
)))
|
||||
'(text-mode emacs-lisp-mode rust-mode zig-mode c-ts-mode c-mode prog-mode)
|
||||
)
|
||||
#+END_SRC
|
||||
|
||||
** Electric pair
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'prog-mode-hook 'electric-pair-mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue