dot-emacs

My emacs dotfiles/config
git clone git://git.ethandl.dev/dot-emacs
Log | Files | Refs

commit 6f7b9c2e9f1a671b46ae69425ed1d3f70831734c
parent 681b22da370ad3da4d58c3eabf26e0856b756258
Author: Ethan Long <ethan@localhost.localdomain>
Date:   Sat, 27 Jun 2026 14:40:14 +1000

Added support for font ligatures on standard Emacs builds.

At this point, the check is just to see if you're on MacOS or not,
as Mac clients have the choice of using emacs-mac which has native
font ligature support.

Diffstat:
Mconfig.org | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/config.org b/config.org @@ -21,6 +21,8 @@ This config has the following explicit package dependencies: |--------------+--------------------------------------------------------------------| | ~meow~ | For modal keybinds. | |--------------+--------------------------------------------------------------------| +| ~ligature~ | For font ligatures on regular Emacs builds. | +|--------------+--------------------------------------------------------------------| | ~batppuccin~ | For the Catppuccin theme. | |--------------+--------------------------------------------------------------------| | ~ultra-scroll~ | For better smooth scrolling when navigating with a mouse. | @@ -32,6 +34,8 @@ This config has the following explicit package dependencies: |--------------+--------------------------------------------------------------------| | ~vterm~ | For a usable terminal emulator within Emacs. | |--------------+--------------------------------------------------------------------| +| ~powershell~ | A small powershell mode for working with psh files over TRAMP. | +|--------------+--------------------------------------------------------------------| There are a total of 9 packages installed by these dependencies. * Keybinds ** Meow (modal editing) @@ -319,6 +323,17 @@ Finally, we apply these fonts every time we enter org mode. #+begin_src emacs-lisp (add-hook 'org-mode-hook #'ethandl/set-org-fonts) #+end_src +*** Ligatures +In order to get ligatures to display in regular builds of emacs, we use ~ligature.el~: +#+begin_src emacs-lisp + (unless (eq system-type 'darwin) + (elpaca ligature + (ligature-set-ligatures 'prog-mode '("<---" "<--" "<<-" "<-" "->" "-->" "--->" "<->" "<-->" "<--->" "<---->" "<!--" + "<==" "<===" "<=" "=>" "=>>" "==>" "===>" ">=" "<=>" "<==>" "<===>" "<====>" "<!---" + "<~~" "<~" "~>" "~~>" "::" ":::" "==" "!=" "===" "!==" + ":=" ":-" ":+" "<*" "<*>" "*>" "<|" "<|>" "|>" "+:" "-:" "=:" "<******>" "++" "+++")) + (global-ligature-mode t))) +#+end_src ** Theme I like the Catppuccin theme, but the official one kinda stinks. As such, I use the ~batppuccin~ theme: #+begin_src emacs-lisp