about summary refs log tree commit diff
path: root/config.el
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-05-18T15·32-0400
committerGriffin Smith <root@gws.fyi>2020-05-18T15·33-0400
commit2bc8919a241e0d65c547e5671e3909e1c85b347f (patch)
treeeb208d33a45da773727999abdc3da01649aa5f28 /config.el
parentdcff9be5aaf83990fc80ab23d532b1ead61170f9 (diff)
misc packages
Diffstat (limited to 'config.el')
-rw-r--r--config.el83
1 files changed, 68 insertions, 15 deletions
diff --git a/config.el b/config.el
index 9e862ae68795..0c70b4420423 100644
--- a/config.el
+++ b/config.el
@@ -900,28 +900,43 @@
 (use-package! pyimport
   :after (python))
 
-(use-package! yapfify
+(use-package! blacken
   :after (python)
   :init
-  (add-hook! python-mode #'yapf-mode))
-
-(use-package! w3m
+  (add-hook #'python-mode-hook #'blacken-mode)
   :config
-  (setq browse-url-browser-function
-        `(("^https://app.clubhouse.io.*" . browse-url-firefox)
-          ("^https://github.com.*" . browse-url-firefox)
-          (".*" . browse-url-firefox))))
+  (setq blacken-only-if-project-is-blackened t
+        blacken-allow-py36 t
+        blacken-line-length 100))
+
+(after! python
+  (defun +python-setup ()
+    (setq-local fill-column 100
+                whitespace-line-column 100
+                flycheck-disabled-checkers '(python-flake8)
+                flycheck-checker 'python-pylint))
+
+  (add-hook #'python-mode-hook #'+python-setup)
+  (add-hook #'python-mode-hook #'lsp)
+  (remove-hook #'python-mode-hook #'pipenv-mode))
+
+; (use-package! w3m
+;   :config
+;   (setq browse-url-browser-function
+;         `(("^https://app.clubhouse.io.*" . browse-url-firefox)
+;           ("^https://github.com.*" . browse-url-firefox)
+;           (".*" . browse-url-firefox))))
 
 (use-package! ob-http
   :config
   (add-to-list 'org-babel-load-languages '(http . t)))
 
-(use-package! ob-ipython
-  :after (pyimport)
-  :config
-  (add-to-list 'org-babel-load-languages '(ipython . t))
-  (setq ob-ipython-command
-        "/home/griffin/code/urb/ciml-video-classifier/bin/jupyter"))
+;; (use-package! ob-ipython
+;;   :after (pyimport)
+;;   :config
+;;   (add-to-list 'org-babel-load-languages '(ipython . t))
+;;   (setq ob-ipython-command
+        ;; "/home/griffin/code/urb/ciml-video-classifier/bin/jupyter"))
 
 (use-package! counsel-spotify)
 
@@ -1045,7 +1060,8 @@
 (use-package! string-inflection)
 
 (after! anaconda-mode
-  (set-company-backend! 'anaconda-mode #'company-yasnippet))
+  ;; (set-company-backend! 'anaconda-mode #'company-yasnippet)
+  )
 
 ;; (add-hook! python-mode
 ;;   (capf))
@@ -1213,3 +1229,40 @@ SCHEDULED: <%s>"
 (use-package! metal-mercury-mode)
 (use-package! flycheck-mercury
   :after (metal-mercury-mode flycheck-mercury))
+
+(use-package! direnv
+  :config (direnv-mode))
+
+(after! notmuch
+  (setq notmuch-saved-searches
+        '((:name "inbox" :query "tag:inbox tag:important not tag:trash" :key "i")
+          (:name "flagged" :query "tag:flagged" :key "f")
+          (:name "sent" :query "tag:sent" :key "s")
+          (:name "drafts" :query "tag:draft" :key "d")
+
+          (:name "work" :query "tag:inbox and tag:important and path:work/**"
+                 :key "w")
+          (:name "personal" :query "tag:inbox and tag:important and path:personal/**"
+                 :key "p"))
+        message-send-mail-function 'message-send-mail-with-sendmail)
+
+  (add-hook! notmuch-message-mode-hook
+             #'notmuch-company-setup))
+
+(after! erc
+  ;; (setq erc-autojoin-channels-alist '(("freenode.net" "#nixos" "#haskell" "##tvl")))
+  )
+
+(defun evil-disable-insert-state-bindings ()
+  evil-disable-insert-state-bindings)
+
+;; (use-package! terraform-mode)
+;; (use-package! company-terraform
+;;   :after terraform-mode
+;;   :config (company-terraform-init))
+
+(use-package! znc
+  :config
+  (setq znc-servers
+        '(("znc.gws.fyi" 5000 t
+           ((freenode "glittershark" "Ompquy"))))))