~learax/.emacs.d

ce640750f6897800c1638bfd3c05660702066c48 — William Culhane 2 years ago 24e5502
Adjust ligatures
1 files changed, 8 insertions(+), 0 deletions(-)

M init.el
M init.el => init.el +8 -0
@@ 11,6 11,9 @@
(add-to-list 'default-frame-alist
             '(font . "Iosevka Curly Slab-12"))

(set-face-font 'fixed-pitch-serif "Iosevka Etoile")
(set-face-font 'variable-pitch "Iosevka Etoile")

(setq url-history-file (expand-file-name "url/history" user-emacs-directory))

(global-set-key (kbd "<escape>") 'keyboard-escape-quit)


@@ 106,10 109,15 @@
	     :host github
	     :repo "mickeynp/ligature.el")
  :config
  (setq ligature-composition-table nil)
  (ligature-set-ligatures 'prog-mode '("<---" "<--"  "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
				       "<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---"
				       "<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
				       ":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"))
  (ligature-set-ligatures 'vhdl-mode '("<---" "<--"  "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--"
				       "<==" "<===" "=>" "=>>" "==>" "===>" "<=>" "<==>" "<===>" "<====>" "<!---"
				       "<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!=="
				       ":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++"))
  ;; Enables ligature checks globally in all buffers. You can also do it
  ;; per mode with `ligature-mode'.
  (global-ligature-mode t))