From f7b470763a0f1ccf9a441531e64f1807a82f9df3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 18 Sep 2017 18:56:14 +0200 Subject: Emacs: Fix beancount loading If another repository exists whose name includes beancount and sorts before it, then loading beancount.el will fail due to incorrect load path --- emacs/.emacs.d/main.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 1aa78a4..aee8450 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -1785,7 +1785,7 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer." ;;;;;; Beancount ;; #+BEGIN_SRC emacs-lisp -(let ((beancount-dir (car (split-string (shell-command-to-string "ghq list --full-path beancount"))))) +(let ((beancount-dir (car (split-string (shell-command-to-string "ghq list --full-path blais/beancount"))))) (when (and beancount-dir (file-directory-p beancount-dir)) (add-to-list 'load-path (expand-file-name "editors/emacs/" -- cgit 1.4.1 From 234961c3386df99937a4b6851839985f92ed4293 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 18 Sep 2017 18:57:53 +0200 Subject: Emacs: Use correct keybinding syntax for projectile-ripgrep --- emacs/.emacs.d/main.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index f76c329..2e6eeec 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -521,7 +521,8 @@ (use-package projectile-ripgrep :after (ripgrep projectile) :if (executable-find "rg") - :bind (("C-c p s r" . projectile-ripgrep))) + :bind (:map projectile-command-map + ("s r" . projectile-ripgrep))) ;; #+END_SRC ;;;;;; Projectile -- cgit 1.4.1 From 202e6e82054d71cc21ac5f2880e4acf898ccebcb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 18 Sep 2017 19:04:30 +0200 Subject: Emacs: Enable projectile-mode globally The function projectile-global-mode no longe rseems to throw deprecation warnings. --- emacs/.emacs.d/main.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 2e6eeec..7b73496 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -540,7 +540,7 @@ :demand t :diminish projectile-mode :config (progn - (projectile-mode +1) + (projectile-global-mode +1) (add-to-list 'projectile-globally-ignored-directories ".stversions") (defun yarn-install (&optional arg) -- cgit 1.4.1 From 08b29615b1932f42fbd05cafc2717eb779769a61 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 18 Sep 2017 19:05:13 +0200 Subject: Emacs: Optimise projectile usage --- emacs/.emacs.d/main.el | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 7b73496..b749a10 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -542,6 +542,7 @@ :config (progn (projectile-global-mode +1) (add-to-list 'projectile-globally-ignored-directories ".stversions") + (setq projectile-mode-line "P") (defun yarn-install (&optional arg) (interactive "P") -- cgit 1.4.1 From 733c55b44027cd039dace97b64c7503da3bff41f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 19 Sep 2017 09:58:32 +0200 Subject: offlineimap: Use app-specific password for mail --- offlineimap/.offlineimaprc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc index 0bba896..c1c4e37 100644 --- a/offlineimap/.offlineimaprc +++ b/offlineimap/.offlineimaprc @@ -66,7 +66,7 @@ localfolders = %(satoshipaymaildir)s [Repository satoshipay.io-remote] type = Gmail remoteuser = alan@satoshipay.io -remotepasseval = get_pass("satoshipay/google") +remotepasseval = get_pass("satoshipay/google/app-mail") sslcacertfile = /etc/ssl/certs/ca-certificates.crt keepalive = 1740 holdconnectionopen = yes -- cgit 1.4.1 From a4cc28d1a815d504b637739f78100676983bda5c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 19 Sep 2017 14:17:27 +0200 Subject: autorandr: Set correct DPI for external monitors Turns out they're actually more like 94 dpi, but oh well. --- autorandr/.config/autorandr/postswitch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr/.config/autorandr/postswitch b/autorandr/.config/autorandr/postswitch index 44cb6cc..ae9f7f8 100755 --- a/autorandr/.config/autorandr/postswitch +++ b/autorandr/.config/autorandr/postswitch @@ -6,7 +6,7 @@ case $AUTORANDR_CURRENT_PROFILE in nmcli radio wifi on ;; ("docked") - DPI=120 + DPI=96 nmcli radio all off ;; esac -- cgit 1.4.1