Skip to content

Commit

Permalink
Add autoload magic comments for the functions exposed by google-c-style.
Browse files Browse the repository at this point in the history
This should make packaged versions of google-c-style (like from MELPA)
provide the symbols without doing explicit 'require.

Patch by Kimmo Kinnunen <[email protected]>.
  • Loading branch information
[email protected] committed Sep 29, 2014
1 parent 3ed10fb commit a8999a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google-c-style.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Suitable for inclusion in `c-offsets-alist'."
(goto-char (match-end 0))))
(vector (+ 4 (current-column)))))

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

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

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

0 comments on commit a8999a6

Please sign in to comment.