* Disable line numbers in *shell* mode @ 2013-09-12 3:49 Scott Kinney 2013-09-12 13:42 ` Drew Adams 0 siblings, 1 reply; 4+ messages in thread From: Scott Kinney @ 2013-09-12 3:49 UTC (permalink / raw) To: help-gnu-emacs@gnu.org I have line numbers enabled and i like it except in *shell* mode. it just wastes real estate. any ideas on how to disable line numbers in *shell* mode only? Thanks in advance, -Scott ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Disable line numbers in *shell* mode 2013-09-12 3:49 Disable line numbers in *shell* mode Scott Kinney @ 2013-09-12 13:42 ` Drew Adams 0 siblings, 0 replies; 4+ messages in thread From: Drew Adams @ 2013-09-12 13:42 UTC (permalink / raw) To: Scott Kinney, help-gnu-emacs > I have line numbers enabled and i like it except in *shell* mode. > any ideas on how to disable line numbers in *shell* mode only? See `shell-mode-hook'. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.1875.1378962453.10748.help-gnu-emacs@gnu.org>]
* Re: Disable line numbers in *shell* mode [not found] <mailman.1875.1378962453.10748.help-gnu-emacs@gnu.org> @ 2013-09-12 21:26 ` Felix Dietrich 2013-09-14 0:02 ` Xue Fuqiao 0 siblings, 1 reply; 4+ messages in thread From: Felix Dietrich @ 2013-09-12 21:26 UTC (permalink / raw) To: help-gnu-emacs Scott Kinney <skinney620@yahoo.com> writes: > I have line numbers enabled and i like it > except in *shell* mode. > > it just wastes real estate. > > any ideas on how to disable line numbers in *shell* mode only? (add-hook 'shell-mode-hook (lambda () (linum-mode -1))) Should hopefully do the trick. -- Felix Dietrich ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable line numbers in *shell* mode 2013-09-12 21:26 ` Felix Dietrich @ 2013-09-14 0:02 ` Xue Fuqiao 0 siblings, 0 replies; 4+ messages in thread From: Xue Fuqiao @ 2013-09-14 0:02 UTC (permalink / raw) To: help-gnu-emacs On Fri, Sep 13, 2013 at 5:26 AM, Felix Dietrich <felix.dietrich@sperrhaken.name> wrote: > Scott Kinney <skinney620@yahoo.com> writes: > >> I have line numbers enabled and i like it >> except in *shell* mode. >> >> it just wastes real estate. >> >> any ideas on how to disable line numbers in *shell* mode only? > > (add-hook 'shell-mode-hook (lambda () > (linum-mode -1))) > > Should hopefully do the trick. True. And I recommend you using nlinum in GNU ELPA (if you are not using it now). It is like linum-mode, but uses jit-lock to be more efficient. -- Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-14 0:02 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-12 3:49 Disable line numbers in *shell* mode Scott Kinney 2013-09-12 13:42 ` Drew Adams [not found] <mailman.1875.1378962453.10748.help-gnu-emacs@gnu.org> 2013-09-12 21:26 ` Felix Dietrich 2013-09-14 0:02 ` Xue Fuqiao
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).