From d0f19315f0881a1d719cd4e9769cfae6aed47067 Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 6 Sep 2024 08:52:43 +0200 Subject: [PATCH] flycheck without lsp, avy --- emacs/init.el | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 6f84de5..286500c 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -52,7 +52,7 @@ (message "Org configuration reloaded")) (defun my-org-agenda-format-item (item) - "Format an agenda or TODO item without the filename, but keep the keyword." + "Format an agenda or to-do ITEM without the filename, but keep the keyword." (let* ((marker (or (get-text-property 0 'org-marker item) (get-text-property 0 'org-hd-marker item))) (line (when marker @@ -355,20 +355,25 @@ (use-package rego-mode :ensure t :defer t) (use-package kotlin-mode :ensure t :defer t) (use-package fic-mode :ensure t :defer t) -(use-package flycheck :ensure t :defer t) +(use-package flycheck :ensure t :defer t + :init + (global-flycheck-mode)) ;; navigation ;; === -(use-package ace-jump-mode :ensure t :defer t - :bind (("C-x j j" . ace-jump-mode) - ("C-x j l" . ace-jump-line-mode) - ("C-x j c" . ace-jump-char-mode) - ("C-x j w" . ace-jump-word-mode) - ("C-c DEL" . 'ace-jump-mode-pop-mark))) -(use-package ace-mc :ensure t :defer t - :bind (("C-c >" . 'ace-mc-add-multiple-cursors))) +(use-package avy + :ensure t + :bind (("C-x j c" . avy-goto-char) + ("C-x j M-c" . avy-goto-char-2) + ("C-x j l" . avy-goto-line) + ("C-x j w" . avy-goto-word-1) + ("C-x j ." . avy-resume)) + :config + + (avy-setup-default) + (setq avy-background t)) ;; api testing ;; === @@ -670,9 +675,9 @@ ;; could be llm-openai for example (require 'llm-ollama) (setopt ellama-provider - (make-llm-ollama - ;; this model should be pulled to use it - ;; value should be the same as you print in terminal during pull - :chat-model "codellama:latest" - :embedding-model "nomic-embed-text" - :default-chat-non-standard-params '(("num_ctx" . 8192))))) + (make-llm-ollama + ;; this model should be pulled to use it + ;; value should be the same as you print in terminal during pull + :chat-model "codellama:latest" + :embedding-model "nomic-embed-text" + :default-chat-non-standard-params '(("num_ctx" . 8192)))))