aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-09-08 15:07:11 +0100
committerYann Herklotz <git@yannherklotz.com>2021-09-08 15:07:11 +0100
commitea87dc5c0fe7c447f9663ce32ac83c829939508a (patch)
tree348e4118a78a2cb06298f33e9bd7ad5af96d1943
parentcd395124ec91c49e58525b0fccf73aec28202d32 (diff)
parent3b12137fc31f4a970ea434f845d0c935450f0a2d (diff)
downloaddotfiles-ea87dc5c0fe7c447f9663ce32ac83c829939508a.tar.gz
dotfiles-ea87dc5c0fe7c447f9663ce32ac83c829939508a.zip
Merge branch 'master' of github.com:ymherklotz/dotfiles
-rw-r--r--doom/.DS_Storebin0 -> 6148 bytes
-rw-r--r--doom/config.el97
-rw-r--r--doom/init.el6
-rw-r--r--doom/packages.el7
-rwxr-xr-xmacos/yabai/yabairc3
-rw-r--r--zsh/.zsh/export.zsh4
6 files changed, 58 insertions, 59 deletions
diff --git a/doom/.DS_Store b/doom/.DS_Store
new file mode 100644
index 0000000..5008ddf
--- /dev/null
+++ b/doom/.DS_Store
Binary files differ
diff --git a/doom/config.el b/doom/config.el
index 6dbe26b..18b6d6c 100644
--- a/doom/config.el
+++ b/doom/config.el
@@ -45,7 +45,7 @@
(global-set-key (kbd "C-c z") #'quick-calc)
(global-set-key (kbd "<f5>") #'revert-buffer)
(global-set-key (kbd "C-.") #'other-window)
-(global-set-key (kbd "C-,") #'(lambda () (interactive) (other-window -1)))
+(global-set-key (kbd "C-,") (lambda () (interactive) (other-window -1)))
(global-set-key (kbd "C-c l") #'org-store-link)
(global-set-key (kbd "C-c a") #'org-agenda)
(global-set-key (kbd "C-c /") #'avy-goto-word-1)
@@ -87,10 +87,13 @@
(define-prefix-command 'y-map)
(global-set-key (kbd "C-c y") 'y-map)
-(define-key y-map (kbd "p") 'password-store-copy)
-(define-key y-map (kbd "i") 'password-store-insert)
-(define-key y-map (kbd "g") 'password-store-generate)
-(define-key y-map (kbd "r") 'toggle-rot13-mode)
+(define-key y-map (kbd "p") #'password-store-copy)
+(define-key y-map (kbd "i") #'password-store-insert)
+(define-key y-map (kbd "g") #'password-store-generate)
+(define-key y-map (kbd "r") #'toggle-rot13-mode)
+(define-key y-map (kbd "c") #'calendar)
+(define-key y-map (kbd "C-r") #'ymhg/reload-keywords)
+(define-key y-map (kbd "d") #'y/insert-date)
(electric-indent-mode -1)
@@ -107,8 +110,6 @@
(interactive)
(insert (format-time-string "%c" (current-time))))
-(define-key y-map (kbd "d") 'y/insert-date)
-
;; Set backup directories into the tmp folder
(defvar --backup-directory (concat user-emacs-directory "backups"))
(if (not (file-exists-p --backup-directory))
@@ -148,7 +149,7 @@
(funcall original)
(auto-save-mode -1)))
- (advice-add 'tramp-set-auto-save :around #'tramp-set-auto-save--check)
+ (advice-add #'tramp-set-auto-save :around #'tramp-set-auto-save--check)
;; Use my ~/.ssh/config control master settings according to https://puppet.com/blog/speed-up-ssh-by-reusing-connections
(setq tramp-ssh-controlmaster-options "")))
@@ -362,6 +363,8 @@
(setq diary-mail-days 2)
(setq diary-abbreviated-year-flag nil)
+ (add-hook 'diary-sort-entries #'diary-list-entries-hook)
+
(add-hook 'calendar-today-visible-hook #'calendar-mark-today)
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
@@ -459,7 +462,7 @@
(use-package! org-superstar
:hook (org-mode . org-superstar-mode)
:config
- (setq org-superstar-headline-bullets-list '("♚" "♛" "♜" "♝" "♞" "♟" "♔" "♕" "♖" "♗" "♘" "♙")
+ (setq org-superstar-headline-bullets-list '("♚" "♛" "♜" "♝" "♞" "♔" "♕" "♖" "♗" "♘" "♙")
org-superstar-special-todo-items t))
(use-package! org-id
@@ -488,16 +491,17 @@
(setq ebib-preload-bib-files '("~/Dropbox/bibliography/references.bib")
ebib-notes-directory "~/Dropbox/bibliography/notes/"
ebib-notes-template "#+TITLE: Notes on: %T\n\n>|<"
- ebib-keywords-file "~/Dropbox/bibliography/keywords.txt"
- ebib-reading-list-file "~/Dropbox/bibliography/reading_list.org")
+ ebib-keywords (expand-file-name "~/Dropbox/bibliography/keywords.txt")
+ ebib-reading-list-file "~/Dropbox/bibliography/reading_list.org"
+ ebib-notes-storage 'multiple-notes-per-file)
:config
(add-to-list 'ebib-file-search-dirs "~/Dropbox/bibliography/papers")
(add-to-list 'ebib-file-associations '("pdf" . "open"))
(add-to-list 'ebib-citation-commands '(org-mode (("ref" "cite:%(%K%,)"))))
(advice-add 'bibtex-generate-autokey :around
- #'(lambda (orig-func &rest args)
- (replace-regexp-in-string ":" "" (apply orig-func args))))
+ (lambda (orig-func &rest args)
+ (replace-regexp-in-string ":" "" (apply orig-func args))))
(remove-hook 'ebib-notes-new-note-hook #'org-narrow-to-subtree))
;; Set up dictionaries
@@ -739,6 +743,8 @@
:custom
(alert-default-style 'osx-notifier))
+(use-package ledger-mode)
+
;; Bug fixes
;; Projectile compilation buffer not there anymore for some reason
@@ -757,10 +763,13 @@
;; smtpmail-smtp-service 587 ;; 25 is default -- uncomment and edit if needed
;; smtpmail-stream-type 'starttls)
+(require 'smtpmail)
+
(setq user-mail-address "ymh15@ic.ac.uk"
smtpmail-smtp-server "smtp.office365.com"
smtpmail-smtp-service 587
- smtpmail-stream-type 'starttls)
+ smtpmail-stream-type 'starttls
+ message-send-mail-function 'message-smtpmail-send-it)
(setq message-signature "Yann Herklotz
Imperial College London
@@ -770,48 +779,28 @@ https://yannherklotz.com")
(setq auth-sources '("~/.authinfo" "~/.authinfo.gpg" "~/.netrc"))
+(use-package! modus-operandi-theme
+ :config
+ (custom-theme-set-faces! 'modus-operandi
+ '(proof-locked-face ((t (:extend t :background "gray90"))))))
+
+(use-package! modus-vivendi-theme
+ :config
+ (custom-theme-set-faces! 'modus-vivendi
+ '(proof-locked-face ((t (:extend t :background "gray20"))))))
+
+(use-package! notmuch
+ :config
+ (setq notmuch-saved-searches
+ '((:name "inbox" :query "tag:inbox not tag:trash" :key "n")
+ (:name "flagged" :query "tag:flagged" :key "f")
+ (:name "sent" :query "tag:sent" :key "s")
+ (:name "drafts" :query "tag:draft" :key "d")
+ (:name "mailbox" :query "tag:mailbox not tag:trash" :key "m")
+ (:name "imperial" :query "tag:imperial not tag:trash" :key "i"))))
+
;;(use-package! ox-ssh
;; :after org
;; :config
;; (when (eq system-type 'darwin)
;; (setq org-ssh-header "XAuthLocation /opt/X11/bin/xauth")))
-
-;; Here are some additional functions/macros that could help you configure Doom:
-;;
-;; - `load!' for loading external *.el files relative to this one
-;; - `use-package' for configuring packages
-;; - `after!' for running code after a package has loaded
-;; - `add-load-path!' for adding directories to the `load-path', relative to
-;; this file. Emacs searches the `load-path' when you load packages with
-;; `require' or `use-package'.
-;; - `map!' for binding new keys
-;;
-;; To get information about any of these functions/macros, move the cursor over
-;; the highlighted symbol at press 'K' (non-evil users must press 'C-c g k').
-;; This will open documentation for it, including demos of how they are used.
-;;
-;; You can also try 'gd' (or 'C-c g d') to jump to their definition and see how
-;; they are implemented.
-(custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; 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.
- '(org-blank-before-new-entry (quote ((heading) (plain-list-item))))
- '(package-selected-packages (quote (org-plus-contrib)))
- '(safe-local-variable-values
- (quote
- ((eval add-to-list
- (quote auto-mode-alist)
- (quote
- ("\\.v\\'" . verilog-mode)))
- (eval setq org-ref-pdf-directory
- (concat
- (projectile-project-root)
- "papers/"))))))
-(custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; 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.
- )
diff --git a/doom/init.el b/doom/init.el
index 4e8cff9..dbf03cf 100644
--- a/doom/init.el
+++ b/doom/init.el
@@ -45,7 +45,7 @@
;;vc-gutter ; vcs diff in the fringe
;;vi-tilde-fringe ; fringe tildes to mark beyond EOB
;;window-select ; visually switch windows
- ;;workspaces ; tab emulation, persistence & separate workspaces
+ workspaces ; tab emulation, persistence & separate workspaces
zen ; distraction-free coding or writing
:editor
@@ -129,8 +129,8 @@
latex ; writing papers in Emacs has never been so fun
;;lean
;;factor
- ;;ledger ; an accounting system in Emacs
- ;;lua ; one-based indices? one-based indices
+ ledger ; an accounting system in Emacs
+ lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c
nix ; I hereby declare "nix geht mehr!"
diff --git a/doom/packages.el b/doom/packages.el
index b59fd0a..8bf72b3 100644
--- a/doom/packages.el
+++ b/doom/packages.el
@@ -88,7 +88,10 @@
:recipe (:host github :repo "ymherklotz/emacs-zettelkasten"))
(package! pinentry)
+(package! package-lint)
+
;; Themes
(package! color-theme-sanityinc-tomorrow)
-(package! modus-operandi-theme)
-(package! modus-vivendi-theme)
+(package! modus-themes)
+;;(package! modus-operandi-theme)
+;;(package! modus-vivendi-theme)
diff --git a/macos/yabai/yabairc b/macos/yabai/yabairc
index 4c5fa56..54ff560 100755
--- a/macos/yabai/yabairc
+++ b/macos/yabai/yabairc
@@ -1,5 +1,8 @@
#!/bin/zsh
+sudo yabai --load-sa
+yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
+
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
diff --git a/zsh/.zsh/export.zsh b/zsh/.zsh/export.zsh
index 2de4b93..efd4cc1 100644
--- a/zsh/.zsh/export.zsh
+++ b/zsh/.zsh/export.zsh
@@ -13,6 +13,8 @@ export VISUAL='emacsclient -c'
export TERM='xterm-256color'
export CLICOLOR=1
+export LFSCSIGS="$HOME/.opam/default/.opam-switch/sources/coq-smtcoq.dev+8.13/src/lfsc/tests/signatures"
+
prepend_path() {
[ -d "$1" ] && PATH="$1:$PATH"
}
@@ -29,6 +31,7 @@ if [ $os = "Darwin" ]; then
fi
prepend_path "/usr/local/bin"
+prepend_path "/usr/local/sbin"
prepend_path "${HOME}/.gem/ruby/2.7.0/bin"
prepend_path "${HOME}/.yarn/bin"
prepend_path "${HOME}/.cargo/bin"
@@ -42,6 +45,7 @@ append_path "/opt/Xilinx/Vivado/2019.1/bin"
append_path "/opt/intelFPGA_lite/18.1/quartus/bin"
append_path "$HOME/projects/vericert/bin"
append_path "/opt/bin"
+append_path "$HOME/go/bin"
export PATH