Skip to content

Commit

Permalink
minor opt
Browse files Browse the repository at this point in the history
  • Loading branch information
dej4vu committed Aug 10, 2024
1 parent 416fba8 commit 1b00ded
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions lisp/init-evil.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(setq evil-symbol-word-search t)
;; Give us back Ctrl+U for vim emulation
(setq evil-want-C-u-scroll t)
(evil-set-initial-state 'gptel-context-buffer-mode 'emacs)
)

(use-package undo-tree
Expand Down
3 changes: 3 additions & 0 deletions lisp/init-helm.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
;;("M-x" . helm-M-x)
)
)
(use-package helm-xref
:after helm
:ensure t)

;; helm-smex
;;(use-package helm-smex
Expand Down
1 change: 1 addition & 0 deletions lisp/init-llm.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:models '("qwen2:7b")))
:config
(setq gptel-api-key "your key")
(setq gptel-log-level 'debug)
(add-hook 'gptel-post-response-functions 'gptel-end-of-response)
(add-hook 'gptel-post-stream-hook 'gptel-auto-scroll)
)
Expand Down
22 changes: 11 additions & 11 deletions lisp/init-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
(lsp-deferred)
(lsp-ui-mode)
(lsp-ui-doc-mode))))
(use-package python
:hook ((python-mode . (lambda ()
(company-mode)
(flycheck-mode)))
(python-mode . (lambda ()
(setq-local tab-width 4)))
(inferior-python-mode . company-mode))
:config
;; don't try to guess python indent offset
(setq python-indent-guess-indent-offset nil)
(setq python-shell-completion-native-enable nil))
;;(use-package python
;; :hook ((python-mode . (lambda ()
;; (company-mode)
;; (flycheck-mode)))
;; (python-mode . (lambda ()
;; (setq-local tab-width 4)))
;; (inferior-python-mode . company-mode))
;; :config
;; ;; don't try to guess python indent offset
;; (setq python-indent-guess-indent-offset nil)
;; (setq python-shell-completion-native-enable nil))
(provide 'init-python)

0 comments on commit 1b00ded

Please sign in to comment.