Skip to content

Commit

Permalink
remove clang-format for astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Aug 3, 2024
1 parent e635e63 commit 5ac5f99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 200 deletions.
1 change: 1 addition & 0 deletions .astylerc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--style=kr --align-pointer=name --pad-oper --pad-header
1 change: 0 additions & 1 deletion .bash_aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
alias clang-format="`which clang-format` -style=$HOME/.clang-format"
alias e="$EDITOR"
alias v="$VISUAL"
alias us="setxkbmap us"
Expand Down
192 changes: 0 additions & 192 deletions .clang-format

This file was deleted.

10 changes: 3 additions & 7 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@
(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 '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)))
(use-package astyle
:when (executable-find "/home/niclas/bin/astyle")
:hook (c-mode-common . astyle-on-save-mode))

;; Go
(use-package go-mode
Expand Down

0 comments on commit 5ac5f99

Please sign in to comment.