From 68b37c9d2090f0d21d90c92182e6797183150bd7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 18 Jan 2016 10:42:25 +0100 Subject: Emacs: Remove magit-revert-buffers setting It’s redundant with auto-revert-mode and deprecated --- tag-emacs/emacs.d/init.org | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 69c86d2..cc0ba79 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -486,8 +486,7 @@ time. Make sure to set it up with a nice =completing-read-function= magit-completing-read-function #'magit-builtin-completing-read magit-popup-use-prefix-argument 'default magit-push-always-verify nil - global-magit-file-mode nil - magit-revert-buffers t) + global-magit-file-mode nil) (add-to-list 'magit-no-confirm 'safe-with-wip)) :init (add-hook 'magit-mode-hook #'magit-load-config-extensions)) #+END_SRC -- cgit 1.4.1 From 51437d154eba80d159cd8485c110f6c778fab75e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 18 Jan 2016 13:12:03 +0100 Subject: Emacs: Disable notify-based file watching on Darwin --- tag-emacs/emacs.d/init.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index cc0ba79..dfbcd2a 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -533,10 +533,11 @@ trash for deleting on OS X. ** autorevert #+BEGIN_SRC emacs-lisp -(use-package autorevert - :init (progn - (global-auto-revert-mode 1) - (setq auto-revert-verbose nil))) + (use-package autorevert + :init (progn + (global-auto-revert-mode 1) + (setq auto-revert-verbose nil + auto-revert-use-notify (not (eq system-type 'darwin))))) #+END_SRC ** Encoding -- cgit 1.4.1 From f76ee457eed29f39f9db4521ac881389d45f3706 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 19 Jan 2016 09:48:46 +0100 Subject: Emacs: Use builtin ehelp mode --- tag-emacs/emacs.d/init.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index dfbcd2a..abb64c3 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1126,6 +1126,15 @@ Expand subfolders like a tree inside the parent * Documentation +** ehelp + +ehelp is a less well-known package that’s part of Emacs and slightly +improves the normal help commands, mostly by making quitting them easier. + +#+BEGIN_SRC emacs-lisp + (use-package ehelp + :bind ("C-h" . ehelp-command)) +#+END_SRC ** helm-dash Emacs’ documentation is great to read from inside Emacs. Helm-dash -- cgit 1.4.1 From fe82a01623f5bcc3f16b2dc70a7b62bc6de43369 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 20 Jan 2016 11:47:54 +0100 Subject: Emacs: Bind ehelp correctly --- tag-emacs/emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 558d516..4ac121d 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1134,7 +1134,7 @@ improves the normal help commands, mostly by making quitting them easier. #+BEGIN_SRC emacs-lisp (use-package ehelp - :bind ("C-h" . ehelp-command)) + :bind-keymap ("C-h" . ehelp-map)) #+END_SRC ** helm-dash -- cgit 1.4.1 From e6707113ab902773822c1762ea00a39bdf5c15e9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 20 Jan 2016 11:48:07 +0100 Subject: Emacs: Move discover-my-major bind --- tag-emacs/emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 4ac121d..e1973a1 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1187,7 +1187,7 @@ A nicer way to browse keybindings for major modes. #+BEGIN_SRC emacs-lisp (use-package discover-my-major - :bind ("C-h C-m" . discover-my-major)) + :bind ("" . discover-my-major)) #+END_SRC ** which-key -- cgit 1.4.1 From e1baa8f48effd39398ab5051a71d67a1d9b40335 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 20 Jan 2016 13:01:07 +0100 Subject: Emacs: Lazy-load use-package --- tag-emacs/emacs.d/init.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index e1973a1..40fa173 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -52,7 +52,10 @@ the buffer to be empty. (eval-when-compile (require 'use-package)) (unless (featurep 'use-package) (require 'diminish) - (require 'bind-key)) + (require 'bind-key) + (use-package use-package + :commands (use-package-autoload-keymap) + :defer 5)) (setq use-package-verbose t use-package-always-ensure t package-enable-at-startup nil) -- cgit 1.4.1 From 64efe505036594a9ec439fee0e6385ac5e3995ec Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 20 Jan 2016 15:02:44 +0100 Subject: Emacs: Add reports to ledger-mode configuration --- tag-emacs/emacs.d/init.org | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 40fa173..c7ba94b 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1525,18 +1525,28 @@ I use [[http://ledger-cli.org/][=ledger=]] to manage my finances. It has an Ema works really nicely. #+BEGIN_SRC emacs-lisp -(use-package ledger-mode - :mode ("\\.ledger\\'" . ledger-mode) - :config (progn - (defun setup-ledger-mode () - (setq-local indent-tabs-mode nil)) - (add-hook 'ledger-mode-hook #'setup-ledger-mode) - (setq ledger-use-iso-dates t - ledger-post-use-completion-engine :built-in - ledger-reconcile-default-commodity "€" - ledger-clear-whole-transactions t - ledger-narrow-on-reconcile t - ledger-default-date-format "%Y-%m-%d"))) + (use-package ledger-mode + :mode ("\\.ledger\\'" . ledger-mode) + :config (progn + (defun setup-ledger-mode () + (setq-local indent-tabs-mode nil)) + (add-hook 'ledger-mode-hook #'setup-ledger-mode) + (setq ledger-use-iso-dates t + ledger-post-use-completion-engine :built-in + ledger-reconcile-default-commodity "€" + ledger-clear-whole-transactions t + ledger-narrow-on-reconcile t + ledger-default-date-format "%Y-%m-%d" + ledger-reports '(("Monthly Expenses" "ledger -f %(ledger-file) reg -M Expenses -l \"commodity == '€'\"") + ("Forecast:Next Month" "ledger -f %(ledger-file) bal --forecast 'format_date(d, \"%Y%m%d\")<(to_string(to_int(format_date(now, \"%Y%m01\"))+100))' --limit 'format_date(date, \"%Y%m%d\")>(to_string(to_int(format_date(now, \"%Y%m01\"))+200))' ^Expenses: ^Funds:") + ("Expenses:This Month" "ledger -f %(ledger-file) bal ^Expenses -p \"this month\"") + ("Asset & Liability Balances" "ledger -f %(ledger-file) bal --current -R :Budget: Assets:Receivable Liabilities:Personal") + ("Budget" "ledger -f %(ledger-file) bal ^Funds") + ("bal" "ledger -f %(ledger-file) bal") + ("reg" "ledger -f %(ledger-file) reg") + ("equity" "ledger -f %(ledger-file) equity") + ("payee" "ledger -f %(ledger-file) reg @%(payee)") + ("account" "ledger -f %(ledger-file) reg %(account)"))))) #+END_SRC ** Markdown -- cgit 1.4.1 From b509ca45959eb00a3e5affc9b22fbf029d06cde6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 20 Jan 2016 15:27:46 +0100 Subject: Emacs: Reset split-width-threshold Seems I misunderstood how it works. It’s the minimal width at which a window will be considered for splitting, not the minimum width of a window after splitting --- tag-emacs/emacs.d/init.org | 1 - 1 file changed, 1 deletion(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index c7ba94b..7bc91d7 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -906,7 +906,6 @@ point whilst I’m moving about. scroll-preserve-screen-position t mouse-wheel-scroll-amount '(1 ((shift) . 1) ((control))) split-height-threshold 100 - split-width-threshold 70 frame-resize-pixelwise t) (if (boundp 'ns-pop-up-frames) (setq ns-pop-up-frames nil)) -- cgit 1.4.1