forked from magnars/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuffer-init.el
executable file
·40 lines (33 loc) · 1.33 KB
/
buffer-init.el
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
(defcustom my-buffer-initialization-alist
'(
("\\.[ih]\\(pp\\|xx\\)?$" . my-begin-header)
("\\.c\\(pp\\|xx\\)$" . my-begin-source)
)
"A list of pairs (PATTERN . FUNCTION) describing how to initialize an empty buffer whose
file name begins matches PATTERN."
':type 'alist
)
(setq my-initials "JG")
(defun boost-copyright ()
"Return the appropriate boost copyright for the current user and year"
(concat "Copyright " (user-full-name) " " (number-to-string (nth 5 (decode-time)))
". Distributed under the Boost\n\
Software License, Version 1.0. (See accompanying\n\
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)"))
(defun lw-copyright ()
"Return the appropriate boost copyright for the current user and year"
"")
(defun sdl-copyright ()
"Return the appropriate copyright for the current user and year"
(concat "Copyright SDL " (number-to-string (nth 5 (decode-time)))
". All rights reserved."))
(defcustom my-namespace-roots
'(("boost". boost-copyright) ("fluid" . fluid-copyright) ("x" . lw-copyright))
"An alist of root directory names and associated copyright
functions from which to deduce C++ namespace names."
':type 'alist )
(defun my-filter-path-elts (pe)
(if (or (equal (car pe) "x"))
(my-filter-path-elts (cdr pe))
pe))
(provide 'buffer-init)