[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .emacs help
From: |
Tassilo Horn |
Subject: |
Re: .emacs help |
Date: |
Fri, 05 Jun 2009 10:02:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
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
- .emacs help, Benjamin Badgley, 2009/06/05
- Re: .emacs help,
Tassilo Horn <=