diff --git a/.config/emacs/init.org b/.config/emacs/init.org index c9c2d39..6b34584 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -1473,7 +1473,8 @@ it doesn't close it. (defun joe/c-mode-hook () (local-set-key (kbd "C-x c r") (defun joe/make-run () (interactive) (compile "make run"))) (local-set-key (kbd "C-x c c") (defun joe/make () (interactive) (compile "make"))) - (electric-pair-local-mode t)) + (electric-pair-local-mode t) + (c-toggle-comment-style -1)) (add-hook 'c-mode-hook #'joe/c-mode-hook) (defun joe/close-compilation-if-no-warn-err (buffer string) @@ -1490,7 +1491,6 @@ it doesn't close it. (string-match "compilation" (buffer-name (current-buffer))) (popper-close-latest)))))) (add-hook 'compilation-finish-functions 'joe/close-compilation-if-no-warn-err) - #+end_src *** Haskell #+begin_src emacs-lisp