Skip to content

Commit

Permalink
emacs: clang-format, font and theme
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Jun 28, 2024
1 parent 052e66a commit e7942ca
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,11 @@
(setq indent-tabs-mode t))
(add-hook 'c-mode-common-hook 'my-c/cpp-mode-common-hook)


(use-package clang-format)
(setq clang-format-style-option "microsoft")
(defun clang-format-save-hook ()
(add-hook 'before-save-hook
(lambda ()
(when (locate-dominating-file "." ".clang-format")
(clang-format-buffer))
nil)
nil
t))
(add-hook 'before-save-hook 'clang-format-buffer nil t))
(add-hook 'c-mode-hook (lambda () (clang-format-save-hook)))
(add-hook 'c++-mode-hook (lambda () (clang-format-save-hook)))

Expand Down Expand Up @@ -122,15 +118,14 @@
(put 'upcase-region 'disabled nil)

;;; General Appearence
(use-package sublime-themes
:init (load-theme 'brin t))
(load-theme 'busybee)

(menu-bar-mode -1)
(scroll-bar-mode -1)
(tool-bar-mode -1)

(set-face-attribute 'default nil
:family "IBM Plex Mono"
:family "Fantasque Sans Mono"
:height 140)

(setq inhibit-startup-screen t)
Expand Down

0 comments on commit e7942ca

Please sign in to comment.