From 0f8c30d16e230b94d2985554658157f360c9db9b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 29 Jun 2015 15:46:39 +0200 Subject: Add the pony settings to init.org Oops --- emacs/.emacs.d/init.org | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'emacs/.emacs.d/init.org') 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. -- cgit v1.2.3-54-g00ecf