dotfiles

My dotfiles.
Log | Files | Refs | LICENSE

commit 311d419e055d095938a670ff075d9455d57b048e
parent 635f4080be38e3995ec1053c0f864334303eb237
Author: Ryan Jeffrey <ryan@ryanmj.xyz>
Date:   Sun, 11 Apr 2021 17:22:35 -0700

python ide

Diffstat:
M.config/emacs/config.org | 135++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
1 file changed, 79 insertions(+), 56 deletions(-)

diff --git a/.config/emacs/config.org b/.config/emacs/config.org @@ -19,58 +19,60 @@ ** font and theme #+BEGIN_SRC emacs-lisp -(add-to-list 'load-path (concat user-emacs-directory "lisp/")) + (add-to-list 'load-path (concat user-emacs-directory "lisp/")) -(setq x-gtk-use-system-tooltips nil) + (setq x-gtk-use-system-tooltips nil) -;; font -(if (string= system-name "Southpark") + ;; font + (if (string= system-name "Southpark") + (add-to-list 'default-frame-alist + '(font . "Hasklig:size=20:antialias=true:autohint=true:family=mono")) (add-to-list 'default-frame-alist - '(font . "Hasklig:size=20:antialias=true:autohint=true:family=mono")) - (add-to-list 'default-frame-alist - '(font . "Hasklig:size=16:antialias=true:autohint=true:family=mono"))) + '(font . "Hasklig:size=16:antialias=true:autohint=true:family=mono"))) -(use-package prettify-symbols-mode - :init - (defconst lisp--prettify-symbols-alist - '(("lambda" . ?λ))) - :hook - (lisp-mode)) - - -(add-to-list 'load-path (concat user-emacs-directory "/themes/")) - -(setq modus-vivendi-theme-slanted-constructs nil - modus-vivendi-theme-bold-constructs nil - modus-vivendi-theme-visible-fringes nil - modus-vivendi-theme-subtle-diffs nil - modus-vivendi-theme-distinct-org-blocks nil - modus-vivendi-theme-proportional-fonts nil - modus-vivendi-theme-scale-headings nil - modus-vivendi-theme-scale-1 1 - modus-vivendi-theme-scale-2 1 - modus-vivendi-theme-scale-3 1 - modus-vivendi-theme-scale-4 1) - -(use-package modus-vivendi-theme - :ensure t) -(use-package modus-operandi-theme - :ensure t) -(load-theme 'modus-vivendi t) + (use-package prettify-symbols-mode + :init + (defconst lisp--prettify-symbols-alist + '(("lambda" . ?λ))) + :hook + (lisp-mode)) -(global-set-key (kbd "M-S-<up>") 'text-scale-increase) -(global-set-key (kbd "M-S-<down>") 'text-scale-decrease) -(scroll-bar-mode nil) -(use-package shr - :commands (eww - eww-browse-url) - :config - ;(setq browse-url-browser-function 'eww-browse-url) - (setq shr-use-fonts nil) - (setq shr-use-colors nil) - (setq shr-max-image-proportion 0.2) - (setq shr-width (current-fill-column))) + (add-to-list 'load-path (concat user-emacs-directory "/themes/")) + + + (use-package modus-themes + :ensure t + :init + (setq modus-themes-slanted-constructs nil + modus-themes-bold-constructs nil + modus-themes-visible-fringes nil + modus-themes-subtle-diffs nil + modus-themes-distinct-org-blocks nil + modus-themes-proportional-fonts nil + modus-themes-scale-headings nil + modus-themes-scale-1 1 + modus-themes-scale-2 1 + modus-themes-scale-3 1 + modus-themes-scale-4 1) + ; (modus-themes-load-themes) + :config + ;; Load the theme of your choice: + ;(modus-themes-load-vivendi) +) + (global-set-key (kbd "M-S-<up>") 'text-scale-increase) + (global-set-key (kbd "M-S-<down>") 'text-scale-decrease) + (scroll-bar-mode nil) + + (use-package shr + :commands (eww + eww-browse-url) + :config + ;(setq browse-url-browser-function 'eww-browse-url) + (setq shr-use-fonts nil) + (setq shr-use-colors nil) + (setq shr-max-image-proportion 0.2) + (setq shr-width (current-fill-column))) #+END_SRC @@ -261,16 +263,16 @@ (add-hook 'LaTeX-mode-hook #'company-mode) (add-hook 'LaTeX-mode-hook #'TeX-source-correlate-mode) - (use-package auctex-latexmk - :ensure t - :init - ;(add-to-list 'TeX-command-list "-pvc") - (auctex-latexmk-setup) - ;; (add-hook 'LaTeX-mode-hook - ;; (lambda () - ;; (add-hook 'after-save-hook #'(lambda () - ;; (TeX-command-master "LaTeX")) nil t))) -)) + ;; (use-package auctex-latexmk + ;; :ensure t + ;; :init + ;; (add-to-list 'TeX-command-list '("-pvc")) + ;; (auctex-latexmk-setup) + ;; (add-hook 'LaTeX-mode-hook + ;; (lambda () + ;; (add-hook 'after-save-hook #'(lambda () + ;; (TeX-command-master "LaTeX")) nil t)))) + ) #+End_src ** vterm @@ -433,6 +435,8 @@ c-basic-offset 4) (c-set-offset 'inline-open '0)) + + #+end_src ** JavaScript #+begin_src emacs-lisp @@ -440,6 +444,25 @@ (use-package json-mode :ensure t) #+end_src +** Python +#+begin_src emacs-lisp +(use-package elpy + :ensure t + :init + (add-hook 'python-mode-hook #'(lambda () + (elpy-enable) + (when (require 'flycheck nil t) + (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) + (add-hook 'elpy-mode-hook 'flycheck-mode))))) + +(use-package blacken + :ensure t) + +(use-package py-autopep8 + :ensure t + :init + (add-hook 'elpy-mode-hook #'py-autopep8-enable-on-save)) +#+end_src * Text-editor ** spellcheck #+BEGIN_SRC emacs-lisp