ligatures and line numbers
This commit is contained in:
parent
dbbb08523b
commit
468bac3270
|
@ -87,6 +87,7 @@
|
|||
evil-leader
|
||||
flycheck
|
||||
flycheck-inline
|
||||
ligature
|
||||
lua-mode
|
||||
ns-auto-titlebar
|
||||
nix-mode
|
||||
|
@ -112,6 +113,10 @@
|
|||
; Set font
|
||||
(set-frame-font "Maple Mono NF 16" nil t)
|
||||
|
||||
; Show line numbers
|
||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
|
||||
; Change default indent size to 2 spaces
|
||||
(setq-default indent-tabs-mode nil) ;; Use spaces instead of tabs
|
||||
(setq-default standard-indent 2) ;; Change indent
|
||||
|
@ -233,6 +238,26 @@
|
|||
(treemacs-select-window)))
|
||||
|
||||
(global-set-key (kbd "C-c C-c") 'my/compile-and-focus-treemacs)
|
||||
|
||||
; Ligatures
|
||||
(setq maple-ligatures
|
||||
'(;; coding ligatures
|
||||
"<!---" "--->" "|||>" "<!--" "<|||" "<==>" "-->" "->>" "-<<" "..=" "!=="
|
||||
"#_(" "/==" "||>" "||=" "|->" "===" "==>" "=>>" "=<<" "=/=" ">->" ">=>"
|
||||
">>-" ">>=" "<--" "<->" "<-<" "<||" "<|>" "<=" "<==" "<=>" "<=<" "<<-"
|
||||
"<<=" "<~>" "<~~" "~~>" ">&-" "<&-" "&>>" "&>" "->" "-<" "-~" ".=" "!="
|
||||
"#_" "/=" "|=" "|>" "==" "=>" ">-" ">=" "<-" "<|" "<~" "~-" "~@" "~="
|
||||
"~>" "~~"
|
||||
|
||||
;; whitespace ligatures
|
||||
"---" "..." "{|" "[|" ".?" "::" ":::" "::=" ":="
|
||||
":>" ":<" "\;\;" "!!" "!!." "!!!" "?." "?:" "??" "?=" "**" "***" "*>"
|
||||
"*/" "--" "#:" "#!" "#?" "##" "###" "####" "#=" "/*" "/>" "//" "/**"
|
||||
"///" "$(" ">&" "<&" "&&" "|}" "|]" "$>" ".." "++" "+++" "+>" "=:="
|
||||
"=!=" ">:" ">>" ">>>" "<:" "<*" "<*>" "<$" "<$>" "<+" "<+>" "<>" "<<"
|
||||
"<<<" "</" "</>" "^=" "%%"))
|
||||
(ligature-set-ligatures 'prog-mode maple-ligatures)
|
||||
(global-ligature-mode t)
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue