Remove emacs flycheck and add screenlayout conf for new laptop
This commit is contained in:
@ -1,160 +0,0 @@
|
||||
;;; ~/.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
|
||||
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
xrandr --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --mode 1920x1080 --pos 3840x0 --rotate normal --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-2 --mode 1920x1080 --pos 1920x0 --rotate normal
|
||||
xrandr --output HDMI-2 --off --output HDMI-1 --mode 1920x1080 --pos 4480x0 --rotate left --output DP-1 --off --output eDP-1 --primary --mode 1920x1080 --pos 2560x232 --rotate normal --output DP-2 --mode 2560x1440 --pos 0x0 --rotate normal
|
||||
|
||||
Reference in New Issue
Block a user