File: dot-emacs

package info (click to toggle)
xorp 1.8.5-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,560 kB
  • ctags: 54,995
  • sloc: cpp: 397,204; sh: 17,490; ansic: 17,029; python: 7,643; lex: 1,632; yacc: 1,474; awk: 956; makefile: 251; perl: 217; sed: 33
file content (41 lines) | stat: -rw-r--r-- 1,078 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
;;
;; $XORP$
;;

;; These settings can be added to your .emacs file to give standard
;; xorp developer emacs settings.  Please update if there are features
;; others might find useful.

;; Customizations for all of c-mode, c++-mode, and objc-mode
(defun my-c-mode-common-hook ()

;; Delete all whitespaces; optional
  (c-toggle-hungry-state 1)

;; Use pretty colors
  (turn-on-font-lock)
)

(defun my-c++-mode-hook ()
  (c-set-style "gnu")			; optional
  (setq c-basic-offset 4)
)

(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(add-hook 'c++-mode-hook 'my-c++-mode-hook)


;;
;; kdoc
;;
(global-set-key "\C-x5h"  'kdoc-insert)
(autoload 'kdoc-insert "kdoc" nil t)
(global-set-key "\C-x6h"  'kdoc-h-insert)
(autoload 'kdoc-h-insert "kdoc" nil t)
(global-set-key "\C-x7h"  'kdoc-class-insert)
(autoload 'kdoc-class-insert "kdoc" nil t)
;;;; Copy kdoc.el to ~/path/to/, and add that directory to your load path:
; (setq load-path (cons "~/path/to/" load-path))
;;;; Another way to do it.
; (if (file-exists-p "~/path/to/kdoc.el")
;     (load-library "~/path/to/kdoc.el"))