From 85a1446ca4f2855c1bb967d68e74ed45c1c451f1 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Mon, 18 Apr 2022 21:55:55 -0700 Subject: [PATCH] Still can't get ligatures working with a Mac, so this'll have to do. --- ha-programming.org | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ha-programming.org b/ha-programming.org index 4f540da..48e85cb 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -286,10 +286,18 @@ Typical keybindings for all programming modes: "e p" '("print s-exp" . eval-print-last-sexp)) #+END_SRC ** Ligatures -The idea of using math symbols for a programming languages keywords is /cute/, but confusing when working with other people, and they are looking at my screen: +The idea of using math symbols for a programming languages keywords is /cute/, but can be confusing, so I use it sparingly: + +#+BEGIN_SRC emacs-lisp + (add-hook + 'prog-mode-hook + (lambda () + (mapc (lambda (pair) (push pair prettify-symbols-alist)) + '(("lambda" . "𝝀") + (">=" . "≥") + ("<=" . "≤") + ("!=" . "≠"))))) -#+BEGIN_SRC emacs-lisp :tangle no - (set-ligatures! 'python-mode nil) #+END_SRC The rest of the ligature system in Doom is nice.