From de97917b9e050ca371039c6c7f40908a690941f1 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 15 Aug 2015 23:19:53 -0700 Subject: [PATCH] no linum-mode in term and ansi-term --- dotfiles/emacs.d/init.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 6906e569..3326dbb2 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -171,6 +171,9 @@ (interactive) (s-replace "\n" "" (shell-command-to-string "uuid"))) +(defun imalison:disable-linum-mode () + (linum-mode 0)) + (defun imalison:insert-uuid () (interactive) (insert (imalison:uuid))) @@ -477,6 +480,11 @@ The current directory is assumed to be the project's root otherwise." ;; use-package ;; ============================================================================= +(use-package ansi-term + :commands ansi-term + :config + (progn (add-hook 'term-mode-hook 'imalison:disable-linum-mode))) + ;; Set path from shell. (use-package exec-path-from-shell :ensure t @@ -1050,8 +1058,7 @@ the same tree node, and the headline of the tree node in the Org-mode file." (setq org-directory "~/Dropbox/org") (setq org-mobile-inbox-for-pull "~/Dropbox/org/flagged.org") (setq org-mobile-directory "~/Dropbox/Apps/MobileOrg") - (defun disable-linum-mode () (linum-mode 0)) - (add-hook 'org-mode-hook 'disable-linum-mode) + (add-hook 'org-mode-hook 'imalison:disable-linum-mode) (add-hook 'org-mode-hook (lambda () (setq org-todo-key-trigger t))) (add-hook 'org-agenda-mode-hook 'disable-linum-mode)))