summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 5fd6f06..aad1603 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -631,6 +631,20 @@ font name, font weight, and font height in that order.")
(add-hook 'after-make-frame-functions (lambda (_) (x-set-fonts)))
(x-set-fonts))
+;; Setup ligatures
+(use-package ligature
+ :config
+ (ligature-set-ligatures
+ 'c-mode
+ '("->" "<=" ">=" "==" "!=" "*=" "__"))
+ (ligature-set-ligatures
+ 'go-ts-mode
+ '("<=" ">=" "==" "!=" "*=" ":="))
+ (ligature-set-ligatures
+ 'html-mode
+ '("<!--" "-->" "/>"))
+ (global-ligature-mode))
+
;;; Set Project List
(defun x-set-project-list ()
(interactive)