commit 72a1d92579c2101f719b954a04146fef56c7999d
parent 348367a5ef62dac880814d7f85c98cb1d2cf85bd
Author: Michael Neuper <michael@michaelneuper.com>
Date: Sun, 17 Nov 2024 15:46:55 +0200
fix c and java formatting
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/config.org b/config.org
@@ -139,6 +139,16 @@
("t" "~/.Trash/" "Trash"))))
#+end_src
** :lang
+*** cc
+#+begin_src emacs-lisp
+(after! cc-mode
+ (setq c-basic-offset 2))
+#+end_src
+*** java
+#+begin_src emacs-lisp
+(after! java-mode
+ (setq c-basic-offset 2))
+#+end_src
*** latex
#+begin_src emacs-lisp
; use cdlatex completion instead of yasnippet
diff --git a/init.el b/init.el
@@ -42,7 +42,7 @@
(evil +everywhere); come to the dark side, we have cookies
file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding
- ;; (format +lsp +onsave) ; automated prettiness
+ (format +onsave) ; automated prettiness
;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who don't like vim
multiple-cursors ; editing in many places at once
@@ -126,7 +126,7 @@
;;hy ; readability of scheme w/ speed of python
;;idris ; a language you can depend on
;;json ; At least it ain't XML
- ;;(java +lsp) ; the poster child for carpal tunnel syndrome
+ (java +lsp +tree-sitter) ; the poster child for carpal tunnel syndrome
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
;;julia ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script)