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:
parent
6e77fc7978
commit
e8e5ec5f40
3 changed files with 19 additions and 0 deletions
|
@ -92,6 +92,9 @@
|
|||
:config
|
||||
(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
|
||||
;; gut say `general-define-key'.
|
||||
(general-define-key
|
||||
|
|
|
@ -76,6 +76,10 @@
|
|||
;; alternative to help
|
||||
(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
|
||||
(setq desktop-save 'if-exists)
|
||||
(desktop-save-mode 1)
|
||||
|
|
|
@ -9,9 +9,21 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Dependencies
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(require 'prism)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Configuration
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(use-package py-yapf
|
||||
:config
|
||||
(add-hook 'python-mode-hook #'py-yapf-enable-on-save))
|
||||
|
||||
(add-hook 'python-mode-hook #'prism-mode)
|
||||
|
||||
(provide 'wpc-python)
|
||||
;;; wpc-python.el ends here
|
||||
|
|
Loading…
Reference in a new issue