Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun my/c-mode-hook()
- (c-add-style "mycodingstyle"
- '((c-basic-offset . 4)
- (c-comment-only-line-offset . 0)
- (c-hanging-braces-alist . ((substatement-open before after)))
- (c-offsets-alist . ((topmost-intro . 0)
- (topmost-intro-cont . 0)
- (substatement . 4)
- (substatement-open . 4)
- (statement-case-open . 4)
- (statement-cont . 4)
- (access-label . -4)
- (inclass . 4)
- (inline-open . 0)
- (innamespace . 0)))))
- (c-set-style "mycodingstyle")
- (local-set-key (kbd "C-4") 'ff-find-other-file)
- (font-lock-add-keywords 'c++-mode
- '(("constexpr" . 'font-lock-keyword-face)
- ("auto" . 'font-lock-keyword-face))))
- (add-hook 'c-mode-common-hook 'my/c-mode-hook)
- (add-hook 'c++-mode-common-hook 'my/c-mode-hook)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement