diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2024-11-20 21:53:10 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2024-11-20 22:02:06 +0100 |
| commit | 51f825745589045d8b9df3549e60e4c9caa2171c (patch) | |
| tree | e4c15db4d380dc0eb896d0dabbdad0eae9320cea | |
| parent | 7f5b03c0a3ade4a14f1374c6d5364d28d6c8838f (diff) | |
Add Magit Configuration
We also explored using `ligature.el` to setup ligature support on
Linux, but ultimately abandoned it since the package is not available
on GNU ELPA (and I don't want to pull in MELPA at the moment). I kept
the ligature configuration around for Berkeley Mono for when I figure
out what I want to do with the package.
| -rw-r--r-- | config/emacs/init.el | 8 | ||||
| -rw-r--r-- | config/emacs/ligatures.el | 29 |
2 files changed, 34 insertions, 3 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el index 9f7e4a1..b628ae8 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -1,11 +1,15 @@ (load "~/.config/emacs/sanemacs.el" nil t) ;;(load "~/.config/emacs/gtd.el" nil t) +;;(load "~/.config/emacs/ligatures.el" nil t) (use-package which-key :ensure t :config (which-key-mode)) +(use-package magit + :ensure t) + ;;; TODO(nlordell): ;;; 1. Try out `meow` modal editing mode ;;; 2. Use built-in tree-sitter support (v29) @@ -14,9 +18,7 @@ ;;; <https://happihacking.com/blog/posts/2023/dev-containers-emacs/> ;;; 5. Investigate other potential sane Emacs defaults ;;; <https://idiomdrottning.org/bad-emacs-defaults> -;;; 6. Install and learn magit -;;; <https://www.youtube.com/watch?app=desktop&v=2-0OwGTt0dI> -;;; 7. Matering Emacs <https://www.masteringemacs.org/> +;;; 6. Matering Emacs <https://www.masteringemacs.org/> ;;; Enable ligatures on macOS (if (fboundp 'mac-auto-operator-composition-mode) diff --git a/config/emacs/ligatures.el b/config/emacs/ligatures.el new file mode 100644 index 0000000..83f6431 --- /dev/null +++ b/config/emacs/ligatures.el @@ -0,0 +1,29 @@ +;; Ligature configuration for Berlekey Mono font. Requires `ligature.el` which is +;; not in the GNU ELPA packages archive. +(use-package ligature + :ensure t + :config + (ligature-set-ligatures + 'prog-mode + '(; Group A + ".." ".=" "..." "..<" "::" ":::" ":=" "::=" ";;" ";;;" "??" "???" ".?" "?." + ":?" "?:" "?=" "**" "***" "/*" "*/" "/**" + ; Group B + "<-" "->" "-<" ">-" "<--" "-->" "<<-" "->>" "-<<" ">>-" "<-<" ">->" "<-|" + "|->" "-|" "|-" "||-" "<!--" "<#--" "<=" "=>" ">=" "<==" "==>" "<<=" "=>>" + "=<<" ">>=" "<=<" ">=>" "<=|" "|=>" "<=>" "<==>" "||=" "|=" "//=" "/=" + ; Group C + "<<" ">>" "<<<" ">>>" "<>" "<$" "$>" "<$>" "<+" "+>" "<+>" "<:" ":<" "<:<" + ">:" ":>" "<~" "~>" "<~>" "<<~" "<~~" "~~>" "~~" "<|" "|>" "<|>" "<||" + "||>" "<|||" "|||>" "</" "/>" "</>" "<*" "*>" "<*>" ":?>" + ; Group D + "#(" "#{" "#[" "]#" "#!" "#?" "#=" "#_" "#_(" "##" "###" "####" + ; Group E + "[|" "|]" "[<" ">]" "{!!" "!!}" "{|" "|}" "{{" "}}" "{{--" "--}}" "{!--" + "//" "///" "!!" + ; Group F + "www" "@_" "&&" "&&&" "&=" "~@" "++" "+++" "/\\" "\\/" "_|_" "||" + ; Group G + "=:" "=:=" "=!=" "==" "===" "=/=" "=~" "~-" "^=" "__" "!=" "!==" "-~" "--" + "---")) + (global-ligature-mode t)) |
