Add the pony settings to init.org

Oops
This commit is contained in:
Tom Willemse 2015-06-29 15:46:39 +02:00
parent a0519f51c9
commit 0f8c30d16e

View file

@ -1304,6 +1304,31 @@
(add-hook 'haml-mode-hook #'hl-indent-mode) (add-hook 'haml-mode-hook #'hl-indent-mode)
#+END_SRC #+END_SRC
** Django helper
:PROPERTIES:
:ORDERED: t
:END:
#+BEGIN_SRC emacs-lisp :tangle no
(depends-on "pony-mode")
#+END_SRC
Autoload =pony-mode= because it doesn't come with an autoload cookie.
#+BEGIN_SRC emacs-lisp
(autoload 'pony-mode "pony-mode" nil t)
#+END_SRC
Turn on =compilation-shell-minor-mode= when =pony-mode= is enabled.
#+BEGIN_SRC emacs-lisp
(defun oni:turn-on-compilation-shell-for-pony ()
"Turn on option `compilation-shell-minor-mode' for `pony-minor-mode'."
(add-hook 'pony-minor-mode-hook 'compilation-shell-minor-mode nil t))
(add-hook 'comint-mode-hook #'oni:turn-on-compilation-shell-for-pony)
#+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.