Install prism for scope-highlighting > syntax highlighting

I've wanted a library like this ever since I saw Douglas Crockford's JS talk
about scope highlighting as a more useful alternative to syntax highlighting.
This commit is contained in:
William Carroll 2020-01-06 15:19:57 +00:00
parent 6e77fc7978
commit e8e5ec5f40
3 changed files with 19 additions and 0 deletions

View file

@ -92,6 +92,9 @@
:config :config
(general-add-hook 'emacs-lisp-mode #'ielm-mode)) (general-add-hook 'emacs-lisp-mode #'ielm-mode))
;; Prefer scope-highlighting instead of syntax highlighting for Elisp.
(add-hook 'emacs-lisp-mode #'prism-mode)
;; TODO: Should I be using `general-define-key' or `evil-leader/set-key'? My ;; TODO: Should I be using `general-define-key' or `evil-leader/set-key'? My
;; gut say `general-define-key'. ;; gut say `general-define-key'.
(general-define-key (general-define-key

View file

@ -76,6 +76,10 @@
;; alternative to help ;; alternative to help
(use-package helpful) (use-package helpful)
;; Similar to Douglas Crockford's idea of scope highlighting instead of syntax
;; highlighting.
(use-package prism)
;; persist history etc b/w Emacs sessions ;; persist history etc b/w Emacs sessions
(setq desktop-save 'if-exists) (setq desktop-save 'if-exists)
(desktop-save-mode 1) (desktop-save-mode 1)

View file

@ -9,9 +9,21 @@
;;; Code: ;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Dependencies
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'prism)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package py-yapf (use-package py-yapf
:config :config
(add-hook 'python-mode-hook #'py-yapf-enable-on-save)) (add-hook 'python-mode-hook #'py-yapf-enable-on-save))
(add-hook 'python-mode-hook #'prism-mode)
(provide 'wpc-python) (provide 'wpc-python)
;;; wpc-python.el ends here ;;; wpc-python.el ends here