diff --git a/init.el b/init.el index f7e44b6..67df2bc 100644 --- a/init.el +++ b/init.el @@ -2,6 +2,8 @@ ;;; Commentary: ;;; Code: +(require 'cl-lib) + ;; Some other config files (cl-eval-when (compile load eval) (add-to-list 'load-path (expand-file-name "elisp" user-emacs-directory)) @@ -140,6 +142,9 @@ (keymap-global-set "C-c k" #'previous-buffer) (keymap-global-set "C-c j" #'next-buffer) + ;; Seems useful... + (keymap-global-set "C-c u" #'browse-url) + ;; Set fonts (add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font Mono-12")) (add-hook 'server-after-make-frame-hook @@ -1221,8 +1226,9 @@ With PROJECT, give diagnostics for all buffers in the current project." :init (add-to-list 'auto-mode-alist `(,(rx "/.clang-format" eos) . yaml-ts-mode)) :config - (setf (alist-get 'java-mode apheleia-mode-alist) 'clang-format - (alist-get 'java-ts-mode apheleia-mode-alist) 'clang-format) + (with-eval-after-load 'apheleia + (setf (alist-get 'java-mode apheleia-mode-alist) 'clang-format + (alist-get 'java-ts-mode apheleia-mode-alist) 'clang-format)) (apheleia-global-mode +1)) ;; gud