diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 5208aff..1aab2b8 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1304,6 +1304,31 @@ (add-hook 'haml-mode-hook #'hl-indent-mode) #+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 the generic browse-url function to open URLs in Conkeror.