Skip to content

Commit a8999a6

Browse files
author
erg@google.com
committed
Add autoload magic comments for the functions exposed by google-c-style.
This should make packaged versions of google-c-style (like from MELPA) provide the symbols without doing explicit 'require. Patch by Kimmo Kinnunen <kkinnunen@nvidia.com>.
1 parent 3ed10fb commit a8999a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google-c-style.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Suitable for inclusion in `c-offsets-alist'."
6464
(goto-char (match-end 0))))
6565
(vector (+ 4 (current-column)))))
6666

67+
;;;###autoload
6768
(defconst google-c-style
6869
`((c-recognize-knr-p . nil)
6970
(c-enable-xemacs-performance-kludge-p . t) ; speed up indentation in XEmacs
@@ -129,6 +130,7 @@ Suitable for inclusion in `c-offsets-alist'."
129130
(innamespace . 0))))
130131
"Google C/C++ Programming Style.")
131132

133+
;;;###autoload
132134
(defun google-set-c-style ()
133135
"Set the current buffer's c-style to Google C/C++ Programming
134136
Style. Meant to be added to `c-mode-common-hook'."
@@ -137,6 +139,7 @@ Suitable for inclusion in `c-offsets-alist'."
137139
(setq c-tab-always-indent t)
138140
(c-add-style "Google" google-c-style t))
139141

142+
;;;###autoload
140143
(defun google-make-newline-indent ()
141144
"Sets up preferred newline behavior. Not set by default. Meant
142145
to be added to `c-mode-common-hook'."

0 commit comments

Comments
 (0)