From 3d617548a07be9c33474c6014e5795526265b133 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 28 May 2025 15:02:10 -0500 Subject: script to delete eln and elc; updated tasks; etc and don't compile org-element files --- early-init.el | 6 ++++++ scripts/delete-elisp-compiled-files.sh | 24 ++++++++++++++++++++++++ todo.org | 5 +++++ 3 files changed, 35 insertions(+) create mode 100755 scripts/delete-elisp-compiled-files.sh diff --git a/early-init.el b/early-init.el index 912d6aa9..803ddf24 100644 --- a/early-init.el +++ b/early-init.el @@ -49,6 +49,12 @@ (setq debug-on-error nil) (setq debug-on-quit nil))) + +;; ------------------------------ Bug Workarounds ------------------------------ + +;; Prevent org-element from being natively compiled again by adding the line +(setq native-comp-jit-compilation-deny-list '(".*org-element.*")) + ;; --------------------------- Warning Notifications --------------------------- ;; log warnings, but don't popup the warnings buffer diff --git a/scripts/delete-elisp-compiled-files.sh b/scripts/delete-elisp-compiled-files.sh new file mode 100755 index 00000000..b64a6540 --- /dev/null +++ b/scripts/delete-elisp-compiled-files.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +location=$HOME/.emacs.d/ + +echo ""; echo "You are about to delete emacs lisp compiled files (.eln and .elc) recursively from $location"; + +# Show the files it will delete +echo "The following files will be deleted:" +find $location -type f \( -name "*.eln" -o -name "*.elc" \) -print + + +echo ""; echo "" +read -p "Are you sure you want to continue? (y/n) " -n 1 -r +echo # move to a new line +if [[ $REPLY =~ ^[Yy]$ ]] +then + echo "Deleting files..." + find $location -type f \( -name "*.eln" -o -name "*.elc" \) -exec rm -f {} + + echo "Files deleted." +else + echo "Operation cancelled." +fi + +echo ""; echo "" diff --git a/todo.org b/todo.org index 6ed9fae1..a125cf70 100644 --- a/todo.org +++ b/todo.org @@ -8,3 +8,8 @@ the prompt is pink? ** TODO [#C] Emacs Games Menu Doesn't Work ** TODO [#C] Emacs Eshell Doesn't Inherit Environment Variables ** TODO [#C] Rename 'sync-dir' Variable in Init File to 'org-dir' +** TODO [#A] Fix Emacs Org Roam Recipe Error +C-c n i then type a recipe name. +org-element--get-category: Invalid function: org-element-with-disabled-cache +The file was created, but does not come to the front +The category value seems unaligned -- cgit v1.2.3