From: SteveFKI <stephen.brown@eu.fkilogistex.com>
To: Help-gnu-emacs@gnu.org
Subject: Debugging .emacs file
Date: Wed, 21 Feb 2007 03:28:56 -0800 (PST) [thread overview]
Message-ID: <9079277.post@talk.nabble.com> (raw)
I am new to EMACS, and have created my own .emacs file (because I want to
learn how to do it from scratch). When I open a C file I get the message
"File mode specification error (wrong-type-argument : listp 3).
I would like to be able to debug my .emacs file, and see what is going on,
but if I start EMACS with emacs -debug-init test.c I don't get any debug
info. (This is obviosuly not the right thing to do).
This is my .emacs file
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste
it!
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(current-language-environment "Latin-9")
'(default-input-method "latin-9-prefix")
'(hungry-delete t)
'(setq delete-key-deletes-forward t)
'(global-font-lock-mode t nil (font-lock)))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
;; My modifications
(setq delete-key-deletes-forward t)
;; C-Language customising
(setq standard-indent 3)
;; My C Style
(defconst myCStyle
'(
(c-offsets-alist . ((case-label . 3)
(substatement-open . 0)
(defun-block-intro . 3)
(statement-case-intro . 3)
(statement-block-intro . 3)
(topmost-intro . -1)
))
)
"My C Programming Style")
(defun myCModeCommonHook ()
(c-add-style "personal" myCStyle t)
(setq c-basic-offset . 3)
)
;; Hook my C Style to the standard one
(add-hook 'c-mode-common-hook 'myCModeCommonHook)
;; (c-add-style "myCStyle" '("bsd" (c-basic-offset . 3)))
;; (add-hook 'c-mode-common-hook '(lambda () (c-set-style "myCStyle")))
;; Key bindings
;; C-z is Undo
(define-key global-map "\C-z" 'undo)
;; F5 - goto line
(define-key global-map [f5] 'goto-line)
;; F6 - Replace String
(define-key global-map [f6] 'replace-string)
;; F7 - Search forward for ^L (function breaks)
(define-key global-map [f7] "\C-e\C-s\C-q\C-l")
;; C-F7 - Search backward for ^L (function breaks)
(define-key global-map [C-f7] "\C-a\C-r\C-q\C-l")
;; M-Pg Up Go to beginning of buffer
(define-key global-map [M-prior] 'beginning-of-buffer)
;; M-Pg Down Go to beginning of buffer
(define-key global-map [M-next] 'end-of-buffer)
Can somebody point me in the right direction to fix this please.
Thanks
Steve
--
View this message in context: http://www.nabble.com/Debugging-.emacs-file-tf3266166.html#a9079277
Sent from the Emacs - Help mailing list archive at Nabble.com.
next reply other threads:[~2007-02-21 11:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 11:28 SteveFKI [this message]
2007-02-22 4:51 ` Debugging .emacs file Kevin Rodgers
[not found] <mailman.4846.1172063621.2155.help-gnu-emacs@gnu.org>
2007-02-21 14:31 ` Robert Thorpe
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=9079277.post@talk.nabble.com \
--to=stephen.brown@eu.fkilogistex.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.
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).