From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: beginner questions Date: Sun, 29 Sep 2013 15:45:30 +0200 Organization: Informatimago Message-ID: <87pprryc5h.fsf@informatimago.com> References: <87eh8d2qxi.fsf@informatimago.com> <87siwt12nd.fsf@informatimago.com> <87fvspyndr.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380462616 17689 80.91.229.3 (29 Sep 2013 13:50:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Sep 2013 13:50:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 29 15:50:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VQHO7-0003C4-Ng for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Sep 2013 15:50:19 +0200 Original-Received: from localhost ([::1]:44868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQHO7-0006CD-Dn for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Sep 2013 09:50:19 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 84 Original-X-Trace: individual.net ANKJR83lyRGaKspNzCiYeA7uykePvr+u+CfMd72yYwxS+88gJB Cancel-Lock: sha1:MDM3MjgwNTA3ZjIxZGVkNTYyMjdkOTMwNmYxOTk0MGU1OGQ2ZDc2MA== sha1:tms6lMglPSr4iXeI9BjUXFrARV4= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:201479 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93749 Archived-At: JohnF writes: > Pascal J. Bourguignon wrote: >> JohnF 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 . >>> 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/