-
-
Save otfrom/c34d13995f7653a0b38a25a939d2a14d to your computer and use it in GitHub Desktop.
These two files would go in ~/.emacs.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Put this in early-init.el | |
(setq package-enable-at-startup nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; I'm using straight.el instead of package nowadays. | |
;; https://github.com/raxod502/straight.el | |
;; This can all go in init.el | |
(defvar bootstrap-version) | |
(let ((bootstrap-file | |
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) | |
(bootstrap-version 5)) | |
(unless (file-exists-p bootstrap-file) | |
(with-current-buffer | |
(url-retrieve-synchronously | |
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" | |
'silent 'inhibit-cookies) | |
(goto-char (point-max)) | |
(eval-print-last-sexp))) | |
(load bootstrap-file nil 'nomessage)) | |
(straight-use-package 'use-package) | |
(use-package diminish | |
:straight t) | |
(use-package company | |
:straight t | |
:defer t | |
:diminish company-mode | |
:config | |
(global-company-mode)) | |
(setq-default indent-tabs-mode nil) | |
(use-package flycheck | |
:straight t | |
:defer t | |
:hook ((sh-mode clojure-mode) . flycheck-mode) | |
:config | |
(set-face-attribute 'flycheck-error nil :underline '(:color "#FF4081")) | |
(set-face-attribute 'flycheck-warning nil :underline '(:color "#FF9C00")) | |
(set-face-attribute 'flycheck-info nil :underline '(:color "#9C00FF"))) | |
(use-package flycheck-pos-tip | |
:straight t | |
:defer t | |
:after (flycheck) | |
:config (flycheck-pos-tip-mode)) | |
(use-package highlight-symbol | |
:straight t | |
:defer t | |
:diminish highlight-symbol-mode | |
:hook (prog-mode . highlight-symbol-mode) | |
:init | |
(setq highlight-symbol-occurrence-message '(explicit navigation)) | |
(setq highlight-symbol-on-navigation-p t)) | |
(use-package highlight-symbol-nav-mode | |
:defer t | |
:hook (prog-mode . highlight-symbol-nav-mode)) | |
(use-package highlight-indent-guides | |
:straight t | |
:defer t | |
:hook ((prog-mode) . highlight-indent-guides-mode)) | |
(use-package aggressive-indent | |
:straight t | |
:defer t | |
:diminish aggressive-indent-mode | |
:hook ((emacs-lisp-mode lisp-mode clojure-mode) . aggressive-indent-mode)) | |
(use-package eldoc | |
:diminish eldoc-mode | |
:config (global-eldoc-mode 1)) | |
(use-package rainbow-delimiters | |
:straight t | |
:defer t | |
:diminish rainbow-delimiters | |
:hook ((lisp-mode cider-mode emacs-lisp-mode cider-repl-mode) . rainbow-delimiters-mode)) | |
(use-package flycheck-clj-kondo | |
:defer t | |
:straight t) | |
(use-package paredit | |
:straight t | |
:defer t | |
:diminish paredit-mode | |
:hook ((clojure-mode lisp-mode cider-mode emacs-lisp-mode cider-repl-mode) . paredit-mode)) | |
(use-package clojure-mode | |
:straight t | |
:defer t | |
:config | |
(require 'flycheck-clj-kondo)) | |
(use-package cider | |
:straight t | |
:defer t | |
:init | |
(setq ;; cider-lein-parameters "repl :headless :host localhost" | |
cider-repl-history-file (concat user-emacs-directory "cider-history") | |
cider-repl-history-size 1000 | |
cider-font-lock-dynamically '(macro core function var) | |
cider-repl-result-prefix ";; " | |
cider-eval-result-prefix ";; " | |
cider-use-overlays t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment