unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Does anyone have a sample ".gnu-emacs-custom" file I can see ????
@ 2005-02-03 18:12 new2linux
  0 siblings, 0 replies; only message in thread
From: new2linux @ 2005-02-03 18:12 UTC (permalink / raw)


if anyone has a sample .gnu-emacs-custom file I can see I'd greatly
appreciate it.

I'm getting this error when I load emacs:

Debugger entered--Lisp error: (invalid-read-syntax ") or . in a
vector")
eval-buffer(#<buffer  *load*<2>> nil "~/.gnu-emacs-custom" nil t)
load-with-code-conversion("/home/dorantes/.gnu-emacs-custom"
"~/.gnu-emacs-cu$
load("~/.gnu-emacs-custom" t t)
(if (string-match "XEmacs\\|Lucid" emacs-version) (progn (if ...
...)) (if (f$
eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
load-with-code-conversion("/home/dorantes/.emacs" "~/.emacs" t t)
load("~/.emacs" t t)
#[nil "^H\205\227^@   ?=\203^Q^@?^H?Q\2025^@
?=\203'^@????#\203#^@?\2025^@?\$
command-line()

here's what mine looks like:

(put 'upcase-region 'disabled nil)
"*** set modes during edit ***"
(setq auto-mnode-alist (cons '("\\.txt\\'" . text-mode)
auto-mode-alist))
(setq case-fold-search nil) ; make searches case sensitive
(setq case-fold-search t)   ; make searches case insensitive
(local-unset-key [?\e ?s])
(local-unset-key [?\e ?S])
(global-unset-key [?\e ?s])
(global-unset-key [?\e ?S])
"*** save file and exit ***"
(fset 'save-file-and-exit
"\C-x\C-s\C-x\C-c")
(global-set-key [?\C-x ?\C-n] 'save-file-and-exit)

"*** new line and cursor to column 10 ***"
(fset 'nl-cursor-to-column-10
"\C-e\C-m\C-[10 ")
(global-set-key [?\e ?m] 'nl-cursor-to-column-10)
(global-set-key [?\e ?M] 'nl-cursor-to-column-10)

"*** cursor to column 12 ***"
(fset 'cursor-to-column-12
"\C-e\C-[12 \C-a\C-[12\C-f\C-k\C-o")
(global-set-key [?\e ?n] 'cursor-to-column-12)
(global-set-key [?\e ?N] 'cursor-to-column-12)

"*** cursor to column 22 ***"
(fset 'cursor-to-column-22
"\C-e\C-[22 \C-a\C-[22\C-f\C-k\C-o")
(global-set-key [?\e ?o] 'cursor-to-column-22)
(global-set-key [?\e ?O] 'cursor-to-column-22)

"*** cursor to column 51 ***"
(fset 'cursor-to-column-51
"\C-e\C-[51 \C-a\C-[51\C-f\C-k\C-o")
(global-set-key [?\e ?p] 'cursor-to-column-51)
(global-set-key [?\e ?P] 'cursor-to-column-51)
(global-set-key [?\e ?q] 'query-replace)
(global-set-key [?\e ?Q] 'query-replace)
(global-set-key [?\e ?r] 'replace-string)
(global-set-key [?\e ?R] 'replace-string)
(global-set-key [?\C-x ?l] 'goto-line)
(global-set-key [?\C-x ?L] 'goto-line)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-03 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 18:12 Does anyone have a sample ".gnu-emacs-custom" file I can see ???? new2linux

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).