Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 3f22785e852900c70add85b00bddcd6b934fe7f5 Mon Sep 17 00:00:00 2001
- From: Florian Ragwitz <[email protected]>
- Date: Thu, 17 Jun 2010 00:48:37 +0200
- Subject: [PATCH] Try re-enabling after changing major modes
- Only do that if the buffer has an associated file and we're not
- already enabled.
- This probably makes at least the find-file hook unnecessary.
- ---
- eproject.el | 6 ++++++
- 1 files changed, 6 insertions(+), 0 deletions(-)
- diff --git a/eproject.el b/eproject.el
- index 152c8f7..5fe4f86 100644
- --- a/eproject.el
- +++ b/eproject.el
- @@ -596,6 +596,12 @@ else through unchanged."
- ;; Finish up
- (add-hook 'find-file-hook #'eproject-maybe-turn-on)
- (add-hook 'dired-mode-hook #'eproject-maybe-turn-on)
- +(add-hook 'after-change-major-mode-hook
- + (lambda ()
- + (when (and (buffer-file-name)
- + (not eproject-root))
- + (eproject-maybe-turn-on))))
- +
- (add-to-list 'auto-mode-alist '("\\.eproject$" . dot-eproject-mode))
- (provide 'eproject)
- --
- 1.7.1
Advertisement
Add Comment
Please, Sign In to add comment