From: Harry Putnam <reader@newsguy.com>
Subject: Re: invoke cper-mode instead of perl-mode
Date: Mon, 30 Jun 2003 20:02:09 -0700 [thread overview]
Message-ID: <m3el1b9cge.fsf@newsguy.com> (raw)
In-Reply-To: m3n0fz9hr0.fsf@newsguy.com
Harry Putnam <reader@newsguy.com> writes:
> I have this in .emacs:
> (wrapped for mail)
> (setq auto-mode-alist
> (cons '("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . cperl-mode )
> auto-mode-alist))
>
> Which does work on any files matching the regex, but still, files
> with no extension but are still perl scripts with the perl shebang
> get opened in perl-mode instead of cperl-mode. I don't see this
> explained under `How Major Modes are Chosen' or `Major Modes' in the
> manual so apparently it is another variable that does this.
Ahaa, got the right one now interpreter-mode-alist. And it is in the
section about modes.
>
> A further problem is that files that emacs knows how to open get
> opened with abbrev-mode enabled. But the ones openned in cperl-mode
> do not have abbrev-mode enabled.
>
> I have these in .emacs:
> (setq default-abbrev-mode t)
> (read-abbrev-file)
Still not getting abbrev-mode turned on when opening a perl script.
All other language modes seems to come up with abbrev-mode turned on.
prev parent reply other threads:[~2003-07-01 3:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-01 1:07 invoke cper-mode instead of perl-mode Harry Putnam
2003-07-01 3:02 ` Harry Putnam [this message]
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=m3el1b9cge.fsf@newsguy.com \
--to=reader@newsguy.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.
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).