@ -17,23 +17,19 @@ Define functions that specify what OS I’m on, also whether I’m at work or no
#+BEGIN_SRC emacs-lisp
(defun islin ()
"Return true if on linux"
(string-equal system-type "gnu/linux")
)
(string-equal system-type "gnu/linux"))
(defun iswin ()
"Return true if on windows"
(string-equal system-type "windows-nt")
)
(string-equal system-type "windows-nt"))
(defun ismac ()
"Return true if on macos"
(string-equal system-type "darwin")
)
(string-equal system-type "darwin"))
(defun atwork ()
"Return true if at work"
(string-equal user-login-name "3055822")
)
(string-equal user-login-name "3055822"))
#+END_SRC
* It's not 1986
@ -65,30 +61,19 @@ Also suppress certain warnings that would otherwise come up all the time and con
(setq byte-compile-warnings '(cl-functions))
#+END_SRC
*=use-package=
*Miscellaneous changes to make to the basic config
Set up package handling, including =use-package=. Some of the =org= tools I use are from Non-GNU ELPA, I think. Most of this is the standard =use-package= setup stuff.
Firstly, tell Emacs where to look for custom functions.
Turn on automatic bracket/quotation mark matching.
#+BEGIN_SRC emacs-lisp
@ -179,6 +187,27 @@ Windows likes to set the default directory to the folder where the Emacs binary
(setq default-directory "~/"))
#+END_SRC
* =use-package=
Set up package handling, including =use-package=. Some of the =org= tools I use are from Non-GNU ELPA, I think. Most of this is the standard =use-package= setup stuff.
@ -485,20 +524,22 @@ Automate a tiny part of something I was previously doing manually.
**** =org-modern= and =org-bullets=
Use =org-modern= on =emacs27= and above (although I’m still not wild about it), =org-bullets= otherwise.
Use =org-modern= on =emacs27= and above (although I’m still not wild about it), =org-bullets= otherwise. [[https://github.com/minad/org-modern/issues/5#issuecomment-1318003940][Fix for issue with table widths]], which makes me slightly less not-wild.
(setqdaysoff'("2022-12-23""2022-12-24""2022-12-25""2022-12-26""2022-12-27""2022-12-28""2022-12-29""2022-12-30""2022-12-31""2023-01-01""2023-01-02""2023-01-03""2023-03-17""2023-04-07""2023-04-14""2023-05-01""2023-07-12""2023-07-13""2023-12-22""2023-12-23""2023-12-24""2023-12-25""2023-12-26""2023-12-27""2023-12-28""2023-12-29""2023-12-30""2023-12-31""2023-01-01""2023-01-02""2024-03-18""2024-03-29""2024-03-30""2024-03-31""2024-04-01""2024-04-02""2024-04-03""2024-04-04""2024-04-05""2024-05-06""2024-07-12""2024-07-15""2024-12-23""2024-12-24""2024-12-25""2024-12-26""2024-12-27""2024-12-28""2024-12-29""2024-12-30""2024-12-31""2025-01-01"));; to update in 2025