From f62aeb88174adfbf871a7f3ee156272f174f3708 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 22 Jul 2019 08:21:50 -0400 Subject: [PATCH] Add qutebrowser settings --- emacs/.config/doom/config.el | 5 + emacs/.config/doom/flycheck_config.el | 160 ++++++++++++++++++ emacs/.config/doom/init.el | 33 +--- emacs/.config/doom/packages.el | 6 +- .../.config/qutebrowser/bookmarks/urls | 0 qutebrowser/.config/qutebrowser/quickmarks | 0 6 files changed, 169 insertions(+), 35 deletions(-) create mode 100644 emacs/.config/doom/flycheck_config.el create mode 100644 qutebrowser/.config/qutebrowser/bookmarks/urls create mode 100644 qutebrowser/.config/qutebrowser/quickmarks diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index 0c112fa..9192363 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -104,6 +104,11 @@ (after! beacon (beacon-mode 1)) +(require 'org-alert) + +(after! org-alert + (setq alert-default-style 'libnotify)) + ;; ;; Modules diff --git a/emacs/.config/doom/flycheck_config.el b/emacs/.config/doom/flycheck_config.el new file mode 100644 index 0000000..9192363 --- /dev/null +++ b/emacs/.config/doom/flycheck_config.el @@ -0,0 +1,160 @@ +;;; ~/.config/doom/config.el -*- lexical-binding: t; -*- + +;; (defvar xdg-data (getenv "XDG_DATA_HOME")) +;; (defvar xdg-bin (getenv "XDG_BIN_HOME")) +;; (defvar xdg-cache (getenv "XDG_CACHE_HOME")) +;; (defvar xdg-config (getenv "XDG_CONFIG_HOME")) + +(add-to-list 'default-frame-alist '(inhibit-double-buffering . t)) + +(setq user-full-name "Colin Powell" + user-mail-address "colin@onec.me") + +(setq doom-theme 'doom-one) + +;; Fonts +(setq doom-font (font-spec :family "Iosevka" :size 14)) +(setq doom-big-font (font-spec :family "Iosevka" :size 20)) + +;; Host-specific config + +(pcase (system-name) + ("halimede" + (font-put doom-font :size 9)) ; smaller display + ("triton" + ;; I've swapped these keys on my keyboard + (setq x-super-keysym 'meta + x-meta-keysym 'super))) + +(when IS-LINUX + (font-put doom-font :weight 'semi-light)) +(when IS-MAC + (setq ns-use-thin-smoothing t)) + + +;; +;; Keybinds + +;;:m "M-j" '+hlissner:multi-next-line +;;:m "M-k" '+hlissner:multi-previous-line +(map! ;; Easier window movement + :n "C-h" 'evil-window-left + :n "C-j" 'evil-window-down + :n "C-k" 'evil-window-up + :n "C-l" 'evil-window-right + + (:map evil-treemacs-state-map + "C-h" 'evil-window-left + "C-l" 'evil-window-right) + + (:when IS-LINUX + "s-x" #'execute-extended-command + "s-;" #'eval-expression + ;; use super for window/frame navigation/manipulation + "s-w" #'delete-window + "s-W" #'delete-frame + "s-n" #'+default/new-buffer + "s-j" #'org-move-subtree-down + "s-k" #'org-move-subtree-up + "s-N" #'make-frame + "s-q" (if (daemonp) #'delete-frame #'evil-quit-all) + ;; Restore OS undo, save, copy, & paste keys (without cua-mode, because + ;; it imposes some other functionality and overhead we don't need) + "s-z" #'undo + "s-c" (if (featurep 'evil) #'evil-yank #'copy-region-as-kill) + "s-v" #'yank + "s-s" #'save-buffer + ;; Buffer-local font scaling + "s-+" (λ! (text-scale-set 0)) + "s-=" #'text-scale-increase + "s--" #'text-scale-decrease + ;; Conventional text-editing keys + "s-a" #'mark-whole-buffer + :gi [s-return] #'+default/newline-below + :gi [s-S-return] #'+default/newline-above + :gi [s-backspace] #'doom/backward-kill-to-bol-and-indent) + + :leader + (:prefix "j" + :desc "Dumb jump to def" "g" #'dumb-jump-go + :desc "Dumb jump back" "b" #'dumb-jump-back) + (:prefix "f" + :desc "Find file in dotfiles" "t" #'+hlissner/find-in-dotfiles + :desc "Browse dotfiles" "T" #'+hlissner/browse-dotfiles) + (:prefix "t" + :desc "Switch themes" "t" #'load-theme) + (:prefix "o" + :desc "Elfeed feed reader" "f" #'elfeed) + (:prefix "o" + :desc "Compose an email" "c" #'notmuch-mua-new-mail) + (:prefix "b" + :desc "Black format buffer" "f" #'blacken-buffer) + (:prefix "/" + :desc "Search the web" "w" #'web-search) + (:prefix "y" + :desc "Yank pop!" "p" #'counsel-yank-pop + :desc "Git yank link" "g" #'git-link)) + +;; app/search +(after! web-search + (push '("Searx" "http://search.unbl.ink/?q=%s") + web-search-providers) + (setq web-search-default-provider "Searx")) + +(after! beacon + (beacon-mode 1)) + +(require 'org-alert) + +(after! org-alert + (setq alert-default-style 'libnotify)) + +;; +;; Modules + +(setq +workspaces-switch-project-function #'ignore + +format-on-save-enabled-modes '(python-mode) + +pretty-code-enabled-modes '(emacs-lisp-mode org-mode)) + +;; app/mpdel +;; +(setq libmpdel-hostname "play.unbl.ink") + +;; app/rss +(add-hook! 'elfeed-show-mode-hook (text-scale-set 1.5)) + +(setq rmh-elfeed-org-files (list "~/org/elfeed.org") + elfeed-search-filter "@1-week-ago +unread ") + +;; emacs/eshell +(after! eshell + (set-eshell-alias! + "f" "(other-window 1) && find-file $1" + "l" "ls -lh" + "d" "dired $1" + "gl" "(call-interactively 'magit-log-current)" + "gs" "magit-status" + "gc" "magit-commit")) + +;; tools/magit +(setq magit-repository-directories '(("~/work" . 2)) + magit-save-repository-buffers nil) + +;;; Setup sending email with msmtp +(setq send-mail-function 'sendmail-send-it + sendmail-program "/usr/local/bin/msmtp" + mail-specify-envelope-from t + message-sendmail-f-is-evil t + message-sendmail-envelope-from 'header + message-sendmail-extra-arguments '("--read-envelope-from") + mail-envelope-from 'header) + +(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . planetuml-mode)) + +(load! "+ui.el") +(load! "+org") ;; Org mode stuff like todos and rebindings +(load! "+org-cal") +;(load! "+elfeed") +(load! "+mail") ;; Mail stuff +(load! "+ranger") +(load! "+wttrin") ;; Weather config diff --git a/emacs/.config/doom/init.el b/emacs/.config/doom/init.el index c0579c2..07b5fc5 100644 --- a/emacs/.config/doom/init.el +++ b/emacs/.config/doom/init.el @@ -158,39 +158,10 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(ansi-color-names-vector - ["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"]) '(custom-safe-themes (quote - ("84da7b37214b4ac095a55518502dfa82633bee74f64daf6e1785322e77516f96" "8ffdc8c66ceeaf7921f4510a70d808f01b303e6b4d177c947b442e80d4228678" default))) - '(doom-big-font-mode t) - '(fci-rule-color "#5B6268") - '(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef")) - '(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65")) - '(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a")) - '(objed-cursor-color "#ff6c6b") - '(vc-annotate-background "#282c34") - '(vc-annotate-color-map - (list - (cons 20 "#98be65") - (cons 40 "#b4be6c") - (cons 60 "#d0be73") - (cons 80 "#ECBE7B") - (cons 100 "#e6ab6a") - (cons 120 "#e09859") - (cons 140 "#da8548") - (cons 160 "#d38079") - (cons 180 "#cc7cab") - (cons 200 "#c678dd") - (cons 220 "#d974b7") - (cons 240 "#ec7091") - (cons 260 "#ff6c6b") - (cons 280 "#cf6162") - (cons 300 "#9f585a") - (cons 320 "#6f4e52") - (cons 340 "#5B6268") - (cons 360 "#5B6268"))) - '(vc-annotate-very-old-color nil)) + ("43c808b039893c885bdeec885b4f7572141bd9392da7f0bd8d8346e02b2ec8da" "7d4340a89c1f576d1b5dec57635ab93cdc006524bda486b66d01a6f70cffb08e" "030346c2470ddfdaca479610c56a9c2aa3e93d5de3a9696f335fd46417d8d3e4" "0f1733ad53138ddd381267b4033bcb07f5e75cd7f22089c7e650f1bb28fc67f4" "11e0bc5e71825b88527e973b80a84483a2cfa1568592230a32aedac2a32426c1" "ef07cb337554ffebfccff8052827c4a9d55dc2d0bc7f08804470451385d41c5c" "ff829b1ac22bbb7cee5274391bc5c9b3ddb478e0ca0b94d97e23e8ae1a3f0c3e" "fa477d10f10aa808a2d8165a4f7e6cee1ab7f902b6853fbee911a9e27cf346bc" default))) + '(doom-big-font-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/emacs/.config/doom/packages.el b/emacs/.config/doom/packages.el index 7b02061..cc7cd98 100644 --- a/emacs/.config/doom/packages.el +++ b/emacs/.config/doom/packages.el @@ -12,10 +12,6 @@ :recipe (:fetcher github :repo "sanel/declutter")) -(package! ox-slack - :recipe (:fetcher github - :repo "titaniumbones/ox-slack")) - (package! evil-matchit :recipe (:fetcher github :repo "redguardtoo/evil-matchit")) @@ -57,6 +53,8 @@ (package! elfeed-web) (package! emojify) (package! deadgrep) +(package! org-alert) + ;; modes! (package! terraform-mode) diff --git a/qutebrowser/.config/qutebrowser/bookmarks/urls b/qutebrowser/.config/qutebrowser/bookmarks/urls new file mode 100644 index 0000000..e69de29 diff --git a/qutebrowser/.config/qutebrowser/quickmarks b/qutebrowser/.config/qutebrowser/quickmarks new file mode 100644 index 0000000..e69de29