diff options
author | Franck Cuny <franck@fcuny.net> | 2024-04-19 14:58:12 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-04-19 14:58:12 -0700 |
commit | 7d49655feaddbf163350b341ff26f7db4089bbae (patch) | |
tree | bdbab4676331cacdf183cc6b07350580df22b3dc | |
parent | delete things I'm not sure I need (diff) | |
download | emacs.d-7d49655feaddbf163350b341ff26f7db4089bbae.tar.gz |
more cleanup
Change-Id: Ia87d9c536fe06ed9822ddcb516f94346b43ca726
-rw-r--r-- | config/init-programming.el | 27 | ||||
-rw-r--r-- | config/init-python.el | 6 | ||||
-rw-r--r-- | config/init-snippets.el | 11 |
3 files changed, 24 insertions, 20 deletions
diff --git a/config/init-programming.el b/config/init-programming.el index f9720c8..6a37115 100644 --- a/config/init-programming.el +++ b/config/init-programming.el @@ -7,15 +7,18 @@ ;;; Code: -(require 'compile) -(setq compilation-always-kill t) -;; Don't freeze when process reads from stdin -(setq compilation-disable-input t) -(setq compilation-ask-about-save nil) -(setq compilation-context-lines 10) -(setq compilation-scroll-output 'first-error) -(setq compilation-skip-threshold 2) -(setq compilation-window-height 100) +(use-package compile + :ensure nil + :hook (compilation-filter . ansi-color-compilation-filter) + :custom + (compilation-always-kill t) + (compilation-context-lines 10) + (compilation-disable-input t) + (compilation-scroll-output 'first-error) + (compilation-scroll-output t) + (compilation-skip-threshold 2) + ;; Save all buffers on M-x `compile' + (compilation-ask-about-save nil)) (use-package eldoc :diminish @@ -52,8 +55,12 @@ :ensure t :mode ("\\.rest\\'" . restclient-mode)) -(setq prettify-symbols-unprettify-at-point 'right-edge) +(use-package rainbow-delimiters + :ensure t + :hook ((prog-mode . rainbow-delimiters-mode) + (emacs-lisp-mode . rainbow-delimiters-mode))) +(setq prettify-symbols-unprettify-at-point 'right-edge) (defun my/github-code-search () "Search code on github for a given language." diff --git a/config/init-python.el b/config/init-python.el index 0927dd2..c965602 100644 --- a/config/init-python.el +++ b/config/init-python.el @@ -9,11 +9,7 @@ (use-package python-mode :hook ((python-mode . tree-sitter-hl-mode) - (python-mode . eglot-ensure)) - :interpreter "python" - :bind (:map python-mode-map - ("C-c c") - ("C-c C-z" . python-shell))) + (python-mode . eglot-ensure))) (use-package blacken :ensure t diff --git a/config/init-snippets.el b/config/init-snippets.el index 7c6a83e..2900197 100644 --- a/config/init-snippets.el +++ b/config/init-snippets.el @@ -9,11 +9,12 @@ (use-package yasnippet :ensure t - :defer t - :diminish - :hook ((prog-mode . yas-minor-mode)) - :config - (yas-reload-all)) + :hook (after-init . yas-global-mode)) + +;; Yasnippet Completion At Point Function +(use-package yasnippet-capf + :ensure t + :init (add-to-list 'completion-at-point-functions #'yasnippet-capf)) (provide 'init-snippets) |