From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: .emacs help
Date: Fri, 05 Jun 2009 10:02:31 +0200 [thread overview]
Message-ID: <878wk7jeg8.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 4A289AB9.9060201@peoplepc.com
Benjamin Badgley <mortecanine@peoplepc.com> writes:
Hi Benjamin,
> ; === Accidental Closure Avoidance ===
> ; Saves you from exiting Emacs accidentally, prompts you to be sure.
> ;http://www.dotemacs.de/dotfiles/KilianAFoth.emacs.html
> (global-set-key [(control x) (control c)]
> (function
> (lambda () (interactive)
> (cond ((y-or-n-p "Quit? ")
> (save-buffers-kill-emacs)))))
You don't close the global-set-key call here. The next lines are all
supplied as parameters, but global-set-key expects only 2.
> ; === Cursor Color Modes ===
> ; Changes the cursor color to indicate which mode you're in.
> (setq hcz-set-cursor-color-color "")
> (setq hcz-set-cursor-color-buffer "")
[...]
> ; === C, C++, Java Indentation ===
> (defun my-c-mode-common-hook ()
> (c-set-offset +)))
^
This paren closes the global-set-key call.
HTH,
Tassilo
next prev parent reply other threads:[~2009-06-05 8:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 4:10 .emacs help Benjamin Badgley
2009-06-05 8:02 ` Tassilo Horn [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-07 11:39 Benjamin Badgley
2002-09-11 16:19 Rehm, Keith
2002-09-12 1:16 ` Miles Bader
2002-09-10 14:49 exmixllxer
2002-09-10 14:54 ` exmixllxer
2002-09-11 1:25 ` Miles Bader
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=878wk7jeg8.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--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.