From 812200c00b94c9c2db1c28ea997f90ff462a19ad Mon Sep 17 00:00:00 2001 From: rekado Date: Sun, 31 Jul 2016 21:53:10 +0200 Subject: Move pretty symbols definition to init.org. --- init.org | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 6f5e560..320d3ad 100644 --- a/init.org +++ b/init.org @@ -569,6 +569,29 @@ The default prompt face makes it hard to see the prompt. (require 'company) #+END_SRC +* Pretty symbols +:PROPERTIES: +:noweb-ref: pretty-symbols +:END: + +#+BEGIN_SRC elisp +(defun my/pretty-js-symbols () + (push '("===" . ?โ‰ก) prettify-symbols-alist) + (push '("function" . ?๐‘“) prettify-symbols-alist)) + +(defun my/pretty-r-symbols () + (push '("%>%" . ?โคš) prettify-symbols-alist) + (push '("%$%" . ?โคœ) prettify-symbols-alist) + (push '("==" . ?โ‰ก) prettify-symbols-alist) + (push '("function" . ?๐‘“) prettify-symbols-alist)) + +(when (boundp 'global-prettify-symbols-mode) + (add-hook 'js2-mode-hook 'my/pretty-js-symbols) + (add-hook 'ess-mode-hook 'my/pretty-r-symbols) + (add-hook 'inferior-ess-mode-hook 'my/pretty-r-symbols) + (global-prettify-symbols-mode +1)) +#+END_SRC + * TODO Initial stuff :PROPERTIES: :noweb-ref: initial @@ -737,8 +760,6 @@ still need to process all of this and clean it up. (load "init-modeline.el") (load "init-my-stuff.el") (load "init-paredit.el") -(load "init-pretty.el") - (load "init-music.el") (require 'my/init-music) @@ -810,6 +831,7 @@ Having defined named code blocks in the sections above we can finally put them a <> <> <> +<> <> <> <> -- cgit v1.2.3