Only enable ligatures in prog-mode
This commit is contained in:
parent
07257c6105
commit
a253733a2a
|
@ -192,8 +192,7 @@ Configure the look and feel of Emacs
|
|||
(add-to-list 'package-selected-packages 'visual-fill-column)
|
||||
(use-package visual-fill-column
|
||||
:if (package-installed-p 'visual-fill-column)
|
||||
:functions (visual-fill-column-mode
|
||||
global-visual-fill-column-mode)
|
||||
:functions (visual-fill-column-mode)
|
||||
:hook (((text-mode prog-mode) . (lambda () (visual-line-mode +1) (visual-fill-column-mode +1))))
|
||||
:custom
|
||||
(visual-fill-column-width 160)
|
||||
|
@ -210,7 +209,7 @@ Configure the look and feel of Emacs
|
|||
global-ligature-mode)
|
||||
:config
|
||||
(ligature-set-ligatures
|
||||
'(text-mode prog-mode org-mode)
|
||||
'(prog-mode)
|
||||
'(("<" (rx (= 1 "=")))
|
||||
(">" (rx (= 1 "=")))
|
||||
("-" (rx (* "-") (= 1 ">")))
|
||||
|
|
Loading…
Reference in a new issue