commit cd6d7162c9280b54501513d2af9d2fb37382d4ff parent d67ddbc4b44e6aa683ef3d987b0cad56b710362b Author: Mark Feller <mark@getsunday.com> Date: Thu, 16 Dec 2021 20:12:49 -0700 update emacs config for macos Diffstat:
M | dots/.config/emacs/core/core-packages.el | | | 6 | ++++++ |
M | dots/.config/emacs/modules/module-python.el | | | 13 | ++++++++++++- |
M | dots/.config/emacs/scripts/Center-Window.scpt | | | 0 |
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/dots/.config/emacs/core/core-packages.el b/dots/.config/emacs/core/core-packages.el @@ -250,6 +250,12 @@ (add-hook 'woman-mode-hook 'disable-line-numbers) (add-hook 'Man-mode-hook 'disable-line-numbers) +(add-hook 'compilation-mode-hook 'disable-line-numbers) + +(require 'ansi-color) +(defun colorize-compilation-buffer () + (ansi-color-apply-on-region compilation-filter-start (point))) +(add-hook 'compilation-filter-hook 'colorize-compilation-buffer) (provide 'core-packages) diff --git a/dots/.config/emacs/modules/module-python.el b/dots/.config/emacs/modules/module-python.el @@ -48,7 +48,18 @@ ;; Enable hideshow minor mode in python for folding and unfolding (add-hook 'python-mode-hook 'hs-minor-mode) - (add-hook 'python-mode-hook 'subword-mode)) + (add-hook 'python-mode-hook 'subword-mode) + + (add-hook + 'python-mode-hook + (lambda () + (setq pretty-symbols-alist '()) + (mapc (lambda (pair) (push pair prettify-symbols-alist)) + '(;; Syntax + ("lambda" . ?λ) + (">=" . ?≥) + ("<=" . ?≤) + ("->" . ?➜)))))) (use-package elpy :bind diff --git a/dots/.config/emacs/scripts/Center-Window.scpt b/dots/.config/emacs/scripts/Center-Window.scpt Binary files differ.