From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: modify .emacs
Date: Wed, 18 May 2005 12:30:55 +0200 [thread overview]
Message-ID: <425d66afb92b43657baf605fbc4e717b@Web.DE> (raw)
In-Reply-To: <BAY15-F42A395C77AA1CF85A32F04D5160@phx.gbl>
Am 17.05.2005 um 14:55 schrieb Michael Dewar:
> I use M-x customize, I'm told to add these lines to .emacs
>
> (autoload gp-mode "pari" nil t)
> (autoload gp-script-mode "pari" nil t)
> (autoload gp "pari" nil t)
> (autoload gpman "pari" nil t)
> (setq auto-mode-alist
> (cons ("\\.gp$" . gp-script-mode) auto-mode-alist))
When customizing your Emacs you don't need to add anything to .emacs
because in the customize buffers you press the button to save your
customization for further use and Emacs does all for you.
If you need to add the lines above to .emacs then just do it! Usually
any place is good outside the customize clauses. It's good too to add
them in a "block," with empty lines before and afterwards and a comment
for what and why (and when ?) they were added. If you add more than one
cons to auto-mode-alist you can merge them together. It was said on
this list that \\' is a more precise description of a file name's end
than $. When using more excessively the regular expressions the code
can become very hard to understand:
(setq auto-mode-alist
(append
'(("\\.\\(xsl\\|id\\[de\\]\\)\\'" . sgml-mode)
("\\.\\(plist\\|xml\\|xsl\\|fo\\)\\'" . xml-mode)
("\\.\\(tgz\\|tar\\.\\(bz2\\|gz\\|Z\\)\\)\\'" . tar-mode)
("\\.\\(arc\\|jar\\|lzh\\|zip\\|zoo\\)\\'" . tar-mode)
auto-mode-alist)))
--
Greetings
Pete
“Computers are good at following instructions, but not at reading your
mind.”
- D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
next prev parent reply other threads:[~2005-05-18 10:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-17 12:55 modify .emacs Michael Dewar
2005-05-18 0:39 ` Daniel Brockman
2005-05-18 10:30 ` Peter Dyballa [this message]
[not found] ` <mailman.356.1116413686.25862.help-gnu-emacs@gnu.org>
2005-05-18 22:21 ` Tim X
2005-05-18 23:05 ` Peter Dyballa
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=425d66afb92b43657baf605fbc4e717b@Web.DE \
--to=peter_dyballa@web.de \
--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.
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.