From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: tilde in dired default-directory but not elsewhere
Date: Wed, 09 Jul 2014 20:05:58 +0200 [thread overview]
Message-ID: <87fviao1a1.fsf@debian.uxu> (raw)
In-Reply-To: mailman.5128.1404928614.1147.help-gnu-emacs@gnu.org
Michael Heerdegen <michael_heerdegen@web.de> writes:
>> Now it will be interesting to see how much work is
>> required to make it work the right way for dired and
>> sudo buffers, not to mention all the "file-less"
>> modes...
>
> What use case do you have in mind? Can you give an
> example?
Now I only speak of the mode line. I think I found a
way. First, define it for example like this (possibly
add some more, later).
(setq column-number-mode nil)
(setq line-number-mode nil)
(defvar show-modified t)
(defvar show-path t)
(defvar show-modes nil)
(setq-default mode-line-format
`(" "
(show-modified mode-line-modified)
" "
(show-path (:eval (abbreviate-file-name (buffer-file-name)) ))
" "
(show-modes mode-line-modes)
(line-number-mode "[%l] ")
(column-number-mode "{%c}")
))
For the modes that should show different stuff, simply
change those variables (show-path etc.) locally.
--
underground experts united
next prev parent reply other threads:[~2014-07-09 18:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-07 21:38 tilde in dired default-directory but not elsewhere Emanuel Berg
2014-07-08 18:27 ` Michael Heerdegen
[not found] ` <mailman.5106.1404870369.1147.help-gnu-emacs@gnu.org>
2014-07-09 16:47 ` Emanuel Berg
2014-07-09 17:43 ` Emanuel Berg
2014-07-09 17:56 ` Michael Heerdegen
[not found] ` <mailman.5128.1404928614.1147.help-gnu-emacs@gnu.org>
2014-07-09 18:05 ` Emanuel Berg [this message]
2014-07-09 21:14 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fviao1a1.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).