Move hl-indent settings to init.org
This commit is contained in:
parent
ca31d59176
commit
c057b45cbd
2 changed files with 32 additions and 2 deletions
|
@ -36,7 +36,6 @@
|
||||||
(autoload 'tagedit-mode "tagedit" nil t)
|
(autoload 'tagedit-mode "tagedit" nil t)
|
||||||
(autoload 'tern-mode "tern" nil t)
|
(autoload 'tern-mode "tern" nil t)
|
||||||
(autoload 'xmodmap-mode "xmodmap-mode" nil t)
|
(autoload 'xmodmap-mode "xmodmap-mode" nil t)
|
||||||
(autoload 'hl-indent-mode "hl-indent" nil t)
|
|
||||||
|
|
||||||
;;;; Macros
|
;;;; Macros
|
||||||
|
|
||||||
|
@ -1392,7 +1391,7 @@ from myaethon2.core.decorators import (
|
||||||
|
|
||||||
(oni:add-hooks 'prog-mode-hook
|
(oni:add-hooks 'prog-mode-hook
|
||||||
#'oni:prog-mode-func #'oni:maybe-fci-mode #'rainbow-delimiters-mode
|
#'oni:prog-mode-func #'oni:maybe-fci-mode #'rainbow-delimiters-mode
|
||||||
#'oni:maybe-prettify-symbols-mode #'hl-indent-mode)
|
#'oni:maybe-prettify-symbols-mode)
|
||||||
|
|
||||||
(oni:add-hooks 'python-mode-hook
|
(oni:add-hooks 'python-mode-hook
|
||||||
(lambda () (setq ac-sources '(ac-source-jedi-direct)))
|
(lambda () (setq ac-sources '(ac-source-jedi-direct)))
|
||||||
|
|
|
@ -1266,6 +1266,37 @@
|
||||||
<<auto-complete-no-quickhelp>>)
|
<<auto-complete-no-quickhelp>>)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Highlight indentation
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle no
|
||||||
|
(depends-on "hl-indent")
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Some languages base their ideas of scope on levels of indentation.
|
||||||
|
When these languages get long functions/branches it can get tricky
|
||||||
|
to see where these blocks end. Of course if you have such large
|
||||||
|
functions you might have other problems, but this is sometimes out
|
||||||
|
of your hands. To help, I use =hl-indent-mode=.
|
||||||
|
|
||||||
|
For other languages it might look fun for a little while as well,
|
||||||
|
but since they don't care about indentation as much it can
|
||||||
|
sometimes get messy.
|
||||||
|
|
||||||
|
First, =hl-indent-mode= doesn't have an =;;;###autoload= cookie for its
|
||||||
|
main entry-point, so I add it manually:
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(autoload 'hl-indent-mode "hl-indent" nil t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Then I enable it for the languages I want.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'python-mode-hook #'hl-indent-mode)
|
||||||
|
(add-hook 'yaml-mode-hook #'hl-indent-mode)
|
||||||
|
(add-hook 'haml-mode-hook #'hl-indent-mode)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Use Conkeror to browse URLs
|
* Use Conkeror to browse URLs
|
||||||
|
|
||||||
Use the generic browse-url function to open URLs in Conkeror.
|
Use the generic browse-url function to open URLs in Conkeror.
|
||||||
|
|
Loading…
Reference in a new issue