From e7942cafeb42807669798f0f1849d299a5764763 Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Fri, 28 Jun 2024 11:04:07 +0200 Subject: [PATCH] emacs: clang-format, font and theme --- .emacs.d/init.el | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 7362d66..ca0ddc9 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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))) @@ -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)