diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2020-04-13 18:17:02 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2020-04-13 18:17:02 +0200 |
| commit | 851c1438cf27515e8cc1093567dd6a6f0e34ac7c (patch) | |
| tree | 67c04d4dc83de1d3e421141b7560cdac9d35e7b2 | |
| parent | 502d7bc90318b99c9809f3831a2fd62a5c795471 (diff) | |
| download | dotfiles-851c1438cf27515e8cc1093567dd6a6f0e34ac7c.tar.gz dotfiles-851c1438cf27515e8cc1093567dd6a6f0e34ac7c.zip | |
emacs: make sure that highlight-numbers is installed
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | .emacs.d/init.org | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 07fbff0..25175ed 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -263,13 +263,20 @@ I'm using "Droid Sans Mono" simply because I've grown used to it. #+END_SRC I've hacked my own theme called [[https://github.com/mssola/soria][soria]]. This theme combines the vim theme -[[http://www.vim.org/scripts/script.php?script_id=2140][xoria256]] with the [[http://opensuse.github.io/branding-guidelines/][openSUSE branding guidelines]]. Moreover, let's also enable -=highlight-numbers-mode=, so all numbers (regardless of the format) are properly -highlighted: +[[http://www.vim.org/scripts/script.php?script_id=2140][xoria256]] with the [[http://opensuse.github.io/branding-guidelines/][openSUSE branding guidelines]]. #+BEGIN_SRC elisp (load-theme 'soria t) -(add-hook 'prog-mode-hook 'highlight-numbers-mode) +#+END_SRC + +Moreover, let's also enable =highlight-numbers-mode=, so all numbers (regardless +of the format) are properly highlighted: + +#+BEGIN_SRC elisp +(use-package highlight-numbers + :ensure t + :config + (add-hook 'prog-mode-hook 'highlight-numbers-mode)) #+END_SRC When hacking your own theme, sometimes you want to know what face is the one |
