py on emacs

This commit is contained in:
Flinner Yuu 2024-12-29 09:17:07 +03:00
parent 08c250b3a0
commit 77e0f11aab
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 19 additions and 14 deletions

View File

@ -902,8 +902,8 @@ better sorting for ivy, company..
* Org-Mode * Org-Mode
** Set directories ** Set directories
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-directory "~/Documents/gtd/" (setq org-directory "~/Documents/Emacs/gtd/"
org-roam-directory "~/Documents/roam/" org-roam-directory "~/Documents/Emacs/roam/"
;; org-s-file (car (org-roam-id-find "34f6b040-ea49-421c-ade6-3834a9c86e0f")) ;; org-s-file (car (org-roam-id-find "34f6b040-ea49-421c-ade6-3834a9c86e0f"))
;; org-books-file (concat org-roam-directory "book_list.org") ;; org-books-file (concat org-roam-directory "book_list.org")
org-agenda-files (list org-directory ); org-s-file) org-agenda-files (list org-directory ); org-s-file)
@ -2130,7 +2130,7 @@ Sbt for sbt commands...
(add-hook 'before-save-hook 'lsp-format-buffer nil t)))) (add-hook 'before-save-hook 'lsp-format-buffer nil t))))
#+end_src #+end_src
*** COMMENT python *** python
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package elpy (use-package elpy
:ensure t :ensure t
@ -2139,7 +2139,11 @@ Sbt for sbt commands...
:config :config
(setq elpy-modules (remove 'elpy-module-highlight-indentation elpy-modules)) (setq elpy-modules (remove 'elpy-module-highlight-indentation elpy-modules))
:init :init
(advice-add 'python-mode :before 'elpy-enable)) ;(advice-add 'python-mode :before 'elpy-enable)
(elpy-enable))
(setq python-interpreter "~/.python/venv/bin/python")
(setq python-shell-interpreter "~/.python/venv/bin/python")
#+end_src #+end_src
*** LaTeX *** LaTeX
@ -2835,7 +2839,7 @@ I wrote that, neat isn't it? :P
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no
;; Doesn't tangle! ;; Doesn't tangle!
;; loaded in use-package (block below) ;; loaded in use-package (block below)
(load "~/Nextcloud/Passwords/circe-networks.el") (load "~/Nextcloud/Documents/Passwords/circe-networks.el")
; example content ; example content
(add-to-list 'circe-networks `("chat.name/username" :host "irc.example.com" :port 69 (add-to-list 'circe-networks `("chat.name/username" :host "irc.example.com" :port 69
@ -2886,7 +2890,7 @@ I wrote that, neat isn't it? :P
(enable-lui-track) (enable-lui-track)
;(add-to-list 'circe-networks `()) ;(add-to-list 'circe-networks `())
;; adding to list happens here! ;; adding to list happens here!
(load "~/Nextcloud/Passwords/circe-networks.el") (load "~/Documents/Passwords/circe-networks.el")
(setq circe-color-nicks-min-constrast-ratio 4.5 (setq circe-color-nicks-min-constrast-ratio 4.5
circe-color-nicks-everywhere t) circe-color-nicks-everywhere t)
:hook (circe-channel-mode . enable-circe-color-nicks) :hook (circe-channel-mode . enable-circe-color-nicks)
@ -3010,6 +3014,7 @@ I wrote that, neat isn't it? :P
(:maildir ,(concat dir-name "/Trash") :key ?t) (:maildir ,(concat dir-name "/Trash") :key ?t)
)) ))
(mu4e-sent-messages-behavior . 'delete)
(user-mail-address . ,mail-address) (user-mail-address . ,mail-address)
;; (mu4e-maildir . ,(concat "~/.mail" dir-name)) ;; (mu4e-maildir . ,(concat "~/.mail" dir-name))
(user-full-name . ,full-name) (user-full-name . ,full-name)
@ -3041,7 +3046,7 @@ I wrote that, neat isn't it? :P
or don't include in git source :) or don't include in git source :)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(load "~/Nextcloud/Passwords/mu4e-context.el")) (load "~/Documents/Passwords/mu4e-context.el"))
#+end_src #+end_src
** Other fixes ** Other fixes
@ -3103,7 +3108,7 @@ Only ask whether to reply to all if there are more than one recipients
(and (> (+ tos ccs) 1) (and (> (+ tos ccs) 1)
(yes-or-no-p "Reply to all?"))))) (yes-or-no-p "Reply to all?")))))
(evil-define-key 'normal mu4e-headers-mode-map "R" 'mu4e-supersede-or-compose-reply-ask-wide) (evil-define-key 'normal mu4e-headers-mode-map "R" 'mu4e-supersede-or-compose-reply-ask-wide)
(evil-define-key 'normal mu4e-view-mode-map "R" 'mu4e-supersede-or-compose-reply-ask-wide)) (evil-define-key 'normal mu4e-view-mode-map "R" 'mu4e-supersede-or-compose-reply-ask-wide)))
#+end_src #+end_src