From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: beginner questions
Date: Sun, 29 Sep 2013 15:45:30 +0200 [thread overview]
Message-ID: <87pprryc5h.fsf@informatimago.com> (raw)
In-Reply-To: l28kpd$isn$1@reader1.panix.com
JohnF <john@please.see.sig.for.email.com> writes:
> Pascal J. Bourguignon <pjb@informatimago.com> wrote:
>> JohnF <john@please.see.sig.for.email.com> writes:
>>
>>> Two more questions, please. First (as also mentioned in post
>>> further down this thread), when I earlier said that fundamental-mode
>>> stops parentheses matching, I'd only actually checked <stuff>.
>>> Unfortunately, it still matches (stuff), [stuff], {stuff}.
>>> Any way to turn that all off?
>>
>> M-x customize-variable RET blink-matching-paren RET
>
> Thanks again, Pascal. That works great (and the elisp example
> it provides by rewriting the .emacs file is terrific, too).
> Only rhetorical question is why I couldn't manage to find that while
> trying to google the answer myself, before posting the question.
>
>>> Secondly, I figured I could easily get that fundamental-mode, as
>>> well as other initializations, into .emacs by myself with a little
>>> googling. But I tried all of (separately and together)
>>> ; -*- mode: Fundamental;-*-
>
> Aside: I'm sure you realize I'm writing (trying to write)
> "; [dash][asterisk][dash] mode: etc"
> above, although it shows up on my reader as a bold asterisk
> without dashes.
Yes. But (eq 'Fundamental 'fundamental) --> nil ; in emacs lisp.
>> ;; -*- mode: fundamental;-*-
>
> I thought I'd googled that particular "executable comment" with
> one semicolon, but I'm currently failing to re-locate the page
> that contained the explanation. I'd understood it kind of like
> a postscript file comment that actually gets interpreted.
> Anyway, I changed it to two semicolons like you suggest,
> and it seems to work (both ways, as far as I can tell).
(info "(elisp) Comment Tips")
>>> (setq-default major-mode 'fundamental-mode)
>>> (setq major-mode 'fundamental-mode)
>>
>> M-x customize-variable RET default-major-mode RET
>
> That coughs up a [No match], although it does recognize
> a major-mode variable. But that's already set to
> fundamental-mode, probably thanks to your auto-mode-alist
> suggestion below, which solved the problem.
>
>>> (fundamental-mode)
>>> and nothing works. Still comes up in its own default mode.
>>
>> You should also set auto-mode-alist
>> (setq auto-mode-alist '(("." . fundamental-mode)))
>
> Yup, that solved the problem. And googling your answers
> (e.g., googling blink-matching-paren) nicely fills in the
> explanations of what's going on (once I know the answer,
> it's a lot easier to google it:). Now I'll have to find a
> quick-and-dirty elisp tutorial (tried googling bnf elisp,
> but could only find useful stuff for bnf lisp) to learn
> just enough to init emacs entirely to my liking.
An Introduction to Programming in Emacs Lisp
http://www.gnu.org/software/emacs/emacs-lisp-intro/ or M-: (info "(eintr)Top") RET
(for non-programmers)
Emacs Lisp Manual
http://www.gnu.org/software/emacs/manual/elisp.html or M-: (info "(elisp)Top") RET
> But, thanks mostly to your answers here, I can now see that's
> all easily do-able, and can probably easily figure out how.
> Thanks again,
--
__Pascal Bourguignon__
http://www.informatimago.com/
next prev parent reply other threads:[~2013-09-29 13:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 7:55 beginner questions JohnF
2013-09-25 9:26 ` Pascal J. Bourguignon
2013-09-25 11:18 ` JohnF
2013-09-25 12:55 ` Pascal J. Bourguignon
2013-09-28 8:39 ` JohnF
2013-09-28 15:30 ` Pascal J. Bourguignon
2013-09-28 17:11 ` Rustom Mody
2013-09-28 18:07 ` Pascal J. Bourguignon
2013-09-29 3:45 ` Drew Adams
2013-09-28 22:32 ` Kai Grossjohann
2013-09-29 8:30 ` Drew Adams
2013-09-29 7:27 ` JohnF
2013-09-29 13:45 ` Pascal J. Bourguignon [this message]
2013-09-30 8:46 ` JohnF
2013-09-26 2:22 ` Jude DaShiell
2013-09-25 17:47 ` Doug Lewan
[not found] ` <mailman.2869.1380131281.10748.help-gnu-emacs@gnu.org>
2013-09-26 7:44 ` JohnF
2013-09-26 17:52 ` Ken Goldman
[not found] ` <mailman.2943.1380217948.10748.help-gnu-emacs@gnu.org>
2013-09-27 2:37 ` Rustom Mody
2013-09-28 8:16 ` JohnF
2013-09-28 18:18 ` Stefan Monnier
[not found] ` <mailman.3090.1380392333.10748.help-gnu-emacs@gnu.org>
2013-09-29 7:58 ` JohnF
2013-10-01 17:27 ` Rustom Mody
2013-10-01 17:57 ` Eli Zaretskii
2013-10-01 20:02 ` Joost Kremers
2013-10-02 0:56 ` Stefan Monnier
[not found] ` <mailman.3227.1380675393.10748.help-gnu-emacs@gnu.org>
2013-10-02 14:34 ` Rustom Mody
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=87pprryc5h.fsf@informatimago.com \
--to=pjb@informatimago.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.
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.