From 67938489750ee4391c30daacb29d77fed9936afb Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 13 Nov 2022 23:04:21 -0800 Subject: [oni-core] Show a random tip in my initial scratch message These tips come from “Pragmatic Thinking and Learning: Refactor Your Wetware” by Andy Hunt[1] [1]: https://pragprog.com/titles/ahptl/pragmatic-thinking-and-learning/ --- oni-core.el | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'oni-core.el') diff --git a/oni-core.el b/oni-core.el index 179ea2d..5384e45 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.1113.165538 +;; Version: 2022.1113.230412 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr) ;; This program is free software; you can redistribute it and/or modify @@ -157,24 +157,25 @@ _s_: String list" ;; https://github.com/novoid/dot-emacs/blob/23c28944f1991c636ea71ec7d5c3d266e6dbeb8a/config.org#deletes-duplicate-entries-of-the-history-of-the-minibuffer (setq history-delete-duplicates t) -;; (setq dashboard-footer-messages -;; '("Play more in order to learn more" -;; "Learn from similarities, unlearn from differences" -;; "Explore, invent, and apply in your environment - safely" -;; "See without judging and then act" -;; "Give yourself permission to fail; it’s the path to success" -;; "Groove your mind for success" -;; "Learn to focus" -;; "Make thinking time" -;; "Use a wiki to manage information and knowledge" -;; "Establish rules of engagement to manage interruptions" -;; "Send less email, and you’ll receive less email" -;; "Choose your own tempo for an email conversation" -;; "Mask interrupts to maintain focus" -;; "Use multiple monitors to avoid context switching" -;; "Optimize your personal workflow to maximize context" -;; "Grab the wheel. You can’t steer on autopilot" -;; "Can it be simpler?")) +(let ((tips '("Play more in order to learn more" + "Learn from similarities, unlearn from differences" + "Explore, invent, and apply in your environment - safely" + "See without judging and then act" + "Give yourself permission to fail; it’s the path to success" + "Groove your mind for success" + "Learn to focus" + "Make thinking time" + "Use a wiki to manage information and knowledge" + "Establish rules of engagement to manage interruptions" + "Send less email, and you’ll receive less email" + "Choose your own tempo for an email conversation" + "Mask interrupts to maintain focus" + "Use multiple monitors to avoid context switching" + "Optimize your personal workflow to maximize context" + "Grab the wheel. You can’t steer on autopilot" + "Can it be simpler?"))) + (setq initial-scratch-message + (concat initial-scratch-message ";; " (seq-random-elt tips) "\n\n"))) ;; Increase the threshold for garbage collection for increased performance. ;; Apparently there are some (lsp-mode for example) packages that generate a lot -- cgit v1.2.3-54-g00ecf