Still can't get ligatures working with a Mac, so this'll have to do.
This commit is contained in:
		
							parent
							
								
									ed0a86acb7
								
							
						
					
					
						commit
						85a1446ca4
					
				
					 1 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
					@ -286,10 +286,18 @@ Typical keybindings for all programming modes:
 | 
				
			||||||
     "e p" '("print s-exp" . eval-print-last-sexp))
 | 
					     "e p" '("print s-exp" . eval-print-last-sexp))
 | 
				
			||||||
#+END_SRC
 | 
					#+END_SRC
 | 
				
			||||||
** Ligatures
 | 
					** 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
 | 
					#+END_SRC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The rest of the ligature system in Doom is nice.
 | 
					The rest of the ligature system in Doom is nice.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue