unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dale Snell <ddsnell@frontier.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Need "xemacs/init.el" => "emacs/init.el" help
Date: Thu, 21 Jan 2016 14:14:14 -0800	[thread overview]
Message-ID: <20160121141414.5f7261dc@zothique.localdomain> (raw)
In-Reply-To: <87io2mli0x.fsf@debian.uxu>

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

On Thu, 21 Jan 2016 22:49:50 +0100, in message
87io2mli0x.fsf@debian.uxu, Emanuel Berg wrote:

> Dale Snell <ddsnell@frontier.com> writes:
> 
> > ;;; Set the major mode for new buffers to text-mode:
> > (setq major-more 'text-mode) ;;; Set the fill column:
> > (add-hook 'text-mode-hook (lambda () (setq-default
> > fill-column 66)))
> 
> Hm - `setq-default' in a mode-specific hook?
> Isn't that a contradiction in, uhm, purpose?
> 
> What happens if you just put
> 
>     (setq-default fill-column 66)
> 
> in the init file?

That didn't work, which is why I used the hook.  I forget where I
found that method.  It might even have been in the Emacs manual.
Or it was on someone's web page.  I don't know, it's been years
since I wrote that part.  You're probably right about the
"setq-default", though.  I'll have to try plain "setq" and see
what happens.

> 
> > Also, Emacs defines M-q to run fill-paragraph by
> > default; there's no need to define your
> > own keybinding.
> 
> Well, there can be such a need even in the face of
> default bindings but in this case there isn't as M-q
> is very good and especially compared to F6 which is
> very bad.
> 

There we are in agreement.  I know Emacs defines some function
keys by default, but I generally don't use them.  I have two
function keys set: [f1] for help, and [f12] to compile-command.
Actually, I have [f12] to run the command, S-[f12] to set the
command, and C-[f12] to abort the run.  Since neither the help
function nor compile-command are things I use that much, I'm fine
with them bound to function keys.


--Dale

-- 
Sign in coffee shop:  "Children left unattended will be given an
espresso and a Free Puppy."

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2016-01-21 22:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 19:44 Need "xemacs/init.el" => "emacs/init.el" help Tom Browder
2016-01-21 21:45 ` Dale Snell
2016-01-21 21:49   ` Emanuel Berg
2016-01-21 22:14     ` Dale Snell [this message]
2016-01-21 22:29       ` Tom Browder
2016-01-22 23:21         ` Tom Browder
2016-01-22  1:14       ` Emanuel Berg
2016-01-22  1:43         ` Dale Snell
2016-01-21 21:46 ` Emanuel Berg
2016-01-22  7:04 ` Eli Zaretskii
2016-01-22 23:25   ` Tom Browder

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=20160121141414.5f7261dc@zothique.localdomain \
    --to=ddsnell@frontier.com \
    --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).