From: Yuri Khan <yuri.v.khan@gmail.com>
To: "Jostein Kjønigsen" <jostein@kjonigsen.net>
Cc: Philipp Stephani <p.stephani2@gmail.com>,
Tom Tromey <tom@tromey.com>, Eli Zaretskii <eliz@gnu.org>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Tue, 16 May 2017 18:17:58 +0700 [thread overview]
Message-ID: <CAP_d_8Wpgyp=3CHcQD36voYa7S-AqH6JAkN3ZXBFofitrQbuFA@mail.gmail.com> (raw)
In-Reply-To: <1494930855.4131543.978121176.7BB5246B@webmail.messagingengine.com>
On Tue, May 16, 2017 at 5:34 PM, Jostein Kjønigsen
<jostein@secure.kjonigsen.net> wrote:
> Given the amount of "negative" type replies I've gotten, I'm tempted to post
> a counter-challenge: If this isn't the appropriate use of prog-mode... What
> would you consider the proper uses of it to be (both as a developer or
> user)?
I have two functions in my current Emacs configuration that run on
'prog-mode-hook.
* One binds 'newline-and-indent to RET and 'newline to C-j. I suppose
it is a leftover from the times before electric-indent-mode. I should
get rid of it.
* Another changes the value of 'whitespace-style. In text modes, I
only visualize spaces, tabs and newlines; in programming modes, I also
mark all kinds of coding style violations such as overly long lines,
mixing tabs and spaces, and using an indentation character that
disagrees with the value of 'indent-tabs-mode specific to major mode.
This probably could be unified, too. The big difference here is modes
that are neither text nor programming — I call them application modes
— such as dired, calendar, or compilation — because they don’t need
even whitespace visualization.
As for your cases, you mention compilation and project management. I
think they are not actually programming-dependent. I bind 'recompile
with a compile-command of "make" (actually a variation on that) to
<f9> globally, and I use it in contexts that I don’t consider
programming — e.g. converting images between formats.
next prev parent reply other threads:[~2017-05-16 11:17 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-10 10:35 nxml-mode: Derive from prog-mode instead of text-mode Jostein Kjønigsen
2017-05-10 10:40 ` Yuri Khan
2017-05-10 10:52 ` Jostein Kjønigsen
2017-05-10 11:42 ` Yuri Khan
2017-05-10 12:00 ` Stefan Monnier
2017-05-10 16:38 ` Eli Zaretskii
2017-05-10 17:59 ` Jostein Kjønigsen
2017-05-10 18:59 ` Eli Zaretskii
2017-05-10 19:28 ` Eli Zaretskii
2017-05-11 7:29 ` Jostein Kjønigsen
2017-05-11 15:15 ` raman
2017-05-11 15:29 ` Eli Zaretskii
2017-05-11 15:26 ` Eli Zaretskii
2017-05-14 19:28 ` Philipp Stephani
2017-05-14 19:58 ` Dmitry Gutov
2017-05-15 3:05 ` Tom Tromey
2017-05-16 10:34 ` Jostein Kjønigsen
2017-05-16 11:17 ` Yuri Khan [this message]
2017-05-16 12:12 ` Stefan Monnier
2017-05-16 14:04 ` Drew Adams
2017-05-16 14:08 ` Eric Abrahamsen
2017-05-16 18:19 ` Drew Adams
2017-05-16 21:48 ` Stefan Monnier
2017-05-17 5:13 ` Yuri Khan
2017-05-17 12:53 ` Stefan Monnier
2017-05-17 16:02 ` Drew Adams
2017-05-17 16:20 ` Yuri Khan
2017-05-17 16:37 ` Stefan Monnier
2017-05-17 17:28 ` Drew Adams
2017-05-17 18:42 ` Stefan Monnier
2017-05-17 18:52 ` Johan Bockgård
2017-05-16 14:11 ` Stefan Monnier
2017-05-16 12:11 ` Stefan Monnier
2017-05-16 18:54 ` Eli Zaretskii
2017-05-16 19:02 ` Jostein Kjønigsen
2017-05-24 8:50 ` Jostein Kjønigsen
2017-05-30 8:05 ` Jostein Kjønigsen
2017-05-31 11:52 ` Stefan Monnier
2017-06-02 12:34 ` Jostein Kjønigsen
2017-06-06 14:45 ` Stefan Monnier
2017-05-16 21:50 ` Stefan Monnier
2017-05-11 1:32 ` Rolf Ade
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP_d_8Wpgyp=3CHcQD36voYa7S-AqH6JAkN3ZXBFofitrQbuFA@mail.gmail.com' \
--to=yuri.v.khan@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jostein@kjonigsen.net \
--cc=p.stephani2@gmail.com \
--cc=tom@tromey.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.