(defun my-c-mode-common-hook ()
(c-set-style "stroustrup")
;; other customizations can go here
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(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 "English")
'(default-input-method "rfc1345")
'(global-font-lock-mode t nil (font-lock))
'(show-paren-mode t nil (paren))
'(transient-mark-mode t))
(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.
)
It does not modify the .emacs, even it claims to do so in the minibuffer.
visit0r@r0ck:~$ cp .emacs .emacs-old
visit0r@r0ck:~$ emacs [here I change the Syntax Highlighting and Save Options]
visit0r@r0ck:~$ diff .emacs .emacs-old
[no changes]
Here's the .emacs (if I have added something that breaks it):
(add-to-list 'load-path "/usr/local/ stow/speedbar- 0.13a")
(add-to-list 'auto-mode-alist '("\\.jsp$" . java-mode))
(autoload 'speedbar- frame-mode "speedbar" "Popup a speedbar frame" t) buttons "sb-w3" "s3 specific speedbar button generator.")
(autoload 'speedbar-get-focus "speedbar" "Jump to speedbar frame" t)
;; Texinfo fancy chapter tags
(add-hook 'texinfo-mode-hook (lambda () (require 'sb-texinfo)))
;; w3 link listings
(autoload 'w3-speedbar-
(line-number-mode 1)
(column-number-mode 1)
(setq default-tab-width 4)
(setq-default indent-tabs-mode nil)
(defun my-c-mode- common- hook () common- hook)
(c-set-style "stroustrup")
;; other customizations can go here
)
(add-hook 'c-mode-common-hook 'my-c-mode-
(custom- set-variables set-variables was added by Custom -- don't edit or cut/paste it! language- environment "English") input-method "rfc1345") font-lock- mode t nil (font-lock)) mark-mode t))
;; custom-
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(current-
'(default-
'(global-
'(show-paren-mode t nil (paren))
'(transient-
(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.
)
(add-to-list 'auto-mode-alist '("\\.icc$" . c++-mode))