add conda, debugging for c, use flake8 for python linting

This commit is contained in:
Andrew Scott 2022-10-20 01:22:56 -04:00
parent 21d3a02b11
commit 7054eaef2b
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -9,6 +9,7 @@
(set-fringe-mode 10) ; Give some breathing room (set-fringe-mode 10) ; Give some breathing room
(menu-bar-mode -1) ; Disable the menu bar (menu-bar-mode -1) ; Disable the menu bar
(setq-default custom-file null-device) ; Write customizations not in this file to the null device (AKA stop littering in my init.el) (setq-default custom-file null-device) ; Write customizations not in this file to the null device (AKA stop littering in my init.el)
(setq confirm-kill-processes nil) ; Stop asking about running processes on exit
;; Visible bell ;; Visible bell
(setq visible-bell t) (setq visible-bell t)
@ -121,15 +122,13 @@
(setq custom-safe-themes t) (setq custom-safe-themes t)
;; (use-package everforest ;; (use-package everforest
;; :straight (:type git :repo "https://git.sr.ht/~theorytoe/everforest-theme") ;; :straight (:type git :repo "https://git.sr.ht/~theorytoe/everforest-theme"))
;; :config
;; (load-theme 'everforest-hard-dark t))
;; (use-package gruvbox-theme ;; (use-package gruvbox-theme
;; :config ;; :config
;; (load-theme 'gruvbox-dark-soft t)) ;; (load-theme 'gruvbox-dark-soft t))
(add-to-list 'custom-theme-load-path "~/.cache/emacs/custom/everforest-theme") (add-to-list 'custom-theme-load-path "~/.cache/emacs/straight/build/everforest")
(load-theme 'everforest-hard-dark t) (load-theme 'everforest-hard-dark t)
;; Help distinguish work buffers from others like sidebars and terminal ;; Help distinguish work buffers from others like sidebars and terminal
@ -293,6 +292,7 @@
(require 'cl-lib)) (require 'cl-lib))
(require 'dap-python) (require 'dap-python)
(require 'dap-node) (require 'dap-node)
(require 'dap-lldb)
:bind :bind
(:map dap-mode-map (:map dap-mode-map
("<f5>" . dap-debug) ("<f5>" . dap-debug)
@ -335,8 +335,9 @@
;; C/C++ ;; C/C++
;(setq-default c-default-style "k&r") (setq dap-lldb-debug-program '("/usr/bin/lldb-vscode"))
;(setq-default c-basic-offset 2) (setq-default c-default-style "k&r")
(setq-default c-basic-offset 2)
;(use-package ccls ;(use-package ccls
; :hook ((c-mode c++-mode objc-mode cuda-mode) . ; :hook ((c-mode c++-mode objc-mode cuda-mode) .
@ -450,6 +451,17 @@
:config :config
(setq numpydoc-insert-examples-block nil)) (setq numpydoc-insert-examples-block nil))
(use-package conda
:init
(setq conda-anaconda-home (expand-file-name "/opt/miniconda3"))
(setq conda-env-home-directory (expand-file-name "~/.conda/envs"))
(conda-env-initialize-interactive-shells)
;(conda-env-autoactivate-mode)
:hook
('find-file-hook . (lambda ()
(when (bound-and-true-p conda-project-env-path)
(conda-env-activate-for-buffer)))))
;; Rust ;; Rust
;(use-package rust-mode) ;(use-package rust-mode)
@ -467,7 +479,10 @@
;; Syntax checking ;; Syntax checking
(use-package flycheck (use-package flycheck
:hook (lsp-mode . flycheck-mode)) :hook (lsp-mode . flycheck-mode)
:config
(setq flycheck-python-flake8-executable "flake8")
(flycheck-select-checker 'python-flake8))
;; Templating ;; Templating
(use-package yasnippet (use-package yasnippet