From 97f97a6f529bc4d6ebe5e6a94c9ec1944d5e1986 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 9 Jul 2023 19:37:21 -0400 Subject: Various teeny tiny improvements --- examples/test.org | 2 +- lisp/general.el | 20 ++++++++++++-------- lisp/org-custom.el | 26 ++++++++++++++------------ 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/examples/test.org b/examples/test.org index 7ec4839..832b5c4 100644 --- a/examples/test.org +++ b/examples/test.org @@ -5,7 +5,7 @@ - This is my list ** TODO This is a TODO entry -#+BEGIN_SRC js +#+BEGIN_SRC java function x() { const y = 10; diff --git a/lisp/general.el b/lisp/general.el index a639b0d..6a7a3a7 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -1,11 +1,18 @@ ;;; Code: +;; Initialization screen +(setq fancy-splash-image "~/.emacs.d/images/true.png") +(setq inhibit-startup-screen t + initial-scratch-message nil + sentence-end-double-space nil + ring-bell-function 'ignore + frame-resize-pixelwise t) + ;; Backup files -(setq backup-directory-alist - `((".*" . ,temporary-file-directory))) -(setq auto-save-file-name-transforms - `((".*" ,temporary-file-directory t))) -(setq backup-by-copying t) +(setq make-backup-files nil + auto-save-default nil + create-lockfiles nil) + (setq delete-old-versions t kept-new-versions 6 kept-old-versions 2 @@ -83,9 +90,6 @@ (setq-default left-fringe-width 20) (setq-default right-fringe-width 20) -;; Initialization screen -(setq fancy-splash-image "~/.emacs.d/images/true.png") - ;; Highlight todos (use-package hl-todo :ensure t diff --git a/lisp/org-custom.el b/lisp/org-custom.el index 0131f1c..3c3eeb0 100644 --- a/lisp/org-custom.el +++ b/lisp/org-custom.el @@ -50,17 +50,14 @@ (setq org-src-fontify-natively t) -(use-package org-super-agenda - :ensure t) - -;; (use-package org-alert -;; :ensure t -;; :config -;; (org-alert-enable) -;; (setq org-alert-interval 3600 ; Once per hour! -;; org-alert-notify-cutoff 30 -;; org-alert-notify-after-event-cutoff 30 -;; alert-default-style 'libnotify)) +(use-package org-alert + :ensure t + :config + (org-alert-enable) + (setq org-alert-interval 3600 ; Once per hour! + org-alert-notify-cutoff 30 + org-alert-notify-after-event-cutoff 30 + alert-default-style 'libnotify)) (use-package org-roam :ensure t @@ -75,7 +72,12 @@ ("C-c n a" . org-roam-alias-add) ("C-c n c" . org-capture)) :config - (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) + (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags}" 'face 'org-tag))) + (setq org-roam-dailies-capture-templates + '(("d" "default" entry + "* %?" + :target (file+head "%<%Y-%m-%d>.org" + "#+title: %<%Y-%m-%d>\n#+filetags: :dailies:\n\n* Timeline\n\n* Notes\n\n* Questions\n\n")))) (org-roam-setup) ) -- cgit v1.2.1