summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-06-29 15:46:39 +0200
committerGravatar Tom Willemse2015-06-29 15:46:39 +0200
commit0f8c30d16e230b94d2985554658157f360c9db9b (patch)
tree4fa04cddcd7b3948b7405581285153b214c1d852 /emacs/.emacs.d/init.org
parenta0519f51c97d417bc09c7ff4d425fdce1b66581c (diff)
downloaddotfiles-0f8c30d16e230b94d2985554658157f360c9db9b.tar.gz
dotfiles-0f8c30d16e230b94d2985554658157f360c9db9b.zip
Add the pony settings to init.org
Oops
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org25
1 files changed, 25 insertions, 0 deletions
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.