Comments (12)
Strange!
You can try to enter your ~/.emacs.d/
, cleanup installed packages and launch Emacs again.
Run:
cd ~/.emacs.d
make clean
emacs
Or you can try to run Emacs with --debug-init
to see what is causing the problem.
from minemacs.
@abougouffa First option didn't help (It reinstalled a whole lot of things and at the end same error)
Got the following from --debug-init
(Hopefully it helps)
Debugger entered--Lisp error: (error "Unable to find theme file for ‘use-package’")
error("Unable to find theme file for `%s'" use-package)
#<subr load-theme>(use-package t nil)
apply(#<subr load-theme> (use-package t))
load-theme(use-package t)
(progn (load-theme (or minemacs-theme 'doom-one-light) t) t)
(condition-case err (progn (load-theme (or minemacs-theme 'doom-one-light) t) t) ((debug error) (funcall use-package--warning1 :config err)))
(prog1 (condition-case err (progn (load-theme (or minemacs-theme 'doom-one-light) t) t) ((debug error) (funcall use-package--warning1 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package doom-themes" elapsed) (message "%s...done" "Configuring package doom-themes"))))
(let ((now (current-time))) (message "%s..." "Configuring package doom-themes") (prog1 (condition-case err (progn (load-theme (or minemacs-theme 'doom-one-light) t) t) ((debug error) (funcall use-package--warning1 :config err))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package doom-themes" elapsed) (message "%s...done" "Configuring package doom-themes")))))
(if (not (require 'doom-themes nil t)) (display-warning 'use-package (format "Cannot load %s" 'doom-themes) :error) (let ((now (current-time))) (message "%s..." "Configuring package doom-themes") (prog1 (condition-case err (progn (load-theme (or minemacs-theme 'doom-one-light) t) t) ((debug error) (funcall use-package--warning1 :config err))) (let ((elapsed (float-time (time-subtract ... now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package doom-themes" elapsed) (message "%s...done" "Configuring package doom-themes"))))))
(prog1 (if (not (require 'doom-themes nil t)) (display-warning 'use-package (format "Cannot load %s" 'doom-themes) :error) (let ((now (current-time))) (message "%s..." "Configuring package doom-themes") (prog1 (condition-case err (progn (load-theme (or minemacs-theme ...) t) t) ((debug error) (funcall use-package--warning1 :config err))) (let ((elapsed (float-time ...))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package doom-themes" elapsed) (message "%s...done" "Configuring package doom-themes")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package doom-themes" elapsed) (message "%s...done" "Loading package doom-themes"))))
(let ((now (current-time))) (message "%s..." "Loading package doom-themes") (prog1 (if (not (require 'doom-themes nil t)) (display-warning 'use-package (format "Cannot load %s" 'doom-themes) :error) (let ((now (current-time))) (message "%s..." "Configuring package doom-themes") (prog1 (condition-case err (progn (load-theme ... t) t) ((debug error) (funcall use-package--warning1 :config err))) (let ((elapsed ...)) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package doom-themes" elapsed) (message "%s...done" "Configuring package doom-themes")))))) (let ((elapsed (float-time (time-subtract (current-time) now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package doom-themes" elapsed) (message "%s...done" "Loading package doom-themes")))))
(condition-case err (let ((now (current-time))) (message "%s..." "Loading package doom-themes") (prog1 (if (not (require 'doom-themes nil t)) (display-warning 'use-package (format "Cannot load %s" 'doom-themes) :error) (let ((now (current-time))) (message "%s..." "Configuring package doom-themes") (prog1 (condition-case err (progn ... t) (... ...)) (let (...) (if ... ... ...))))) (let ((elapsed (float-time (time-subtract ... now)))) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Loading package doom-themes" elapsed) (message "%s...done" "Loading package doom-themes"))))) ((debug error) (funcall use-package--warning1 :catch err)))
load-with-code-conversion("/Users/mandar/.emacs.d/core/me-core-ui.el" "/Users/mandar/.emacs.d/core/me-core-ui.el" nil nil)
load("~/.emacs.d/core/me-core-ui.el" nil nil)
(if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (let ((inhibit-message t)) (apply #'message (list (concat "[MinEmacs:Error] " "Core module \"%s\" not found!") module))))
(let ((filename (concat minemacs-core-dir (format "%s.el" module)))) (if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (let ((inhibit-message t)) (apply #'message (list (concat "[MinEmacs:Error] " "Core module \"%s\" not found!") module)))))
(let ((module (car tail))) (apply #'message (list (concat "[MinEmacs:Log] " "Loading core module \"%s\"") module)) (let ((filename (concat minemacs-core-dir (format "%s.el" module)))) (if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (let ((inhibit-message t)) (apply #'message (list (concat "[MinEmacs:Error] " "Core module \"%s\" not found!") module))))) (setq tail (cdr tail)))
(while tail (let ((module (car tail))) (apply #'message (list (concat "[MinEmacs:Log] " "Loading core module \"%s\"") module)) (let ((filename (concat minemacs-core-dir (format "%s.el" module)))) (if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (let ((inhibit-message t)) (apply #'message (list (concat "[MinEmacs:Error] " "Core module \"%s\" not found!") module))))) (setq tail (cdr tail))))
(let ((tail minemacs-core-modules)) (while tail (let ((module (car tail))) (apply #'message (list (concat "[MinEmacs:Log] " "Loading core module \"%s\"") module)) (let ((filename (concat minemacs-core-dir (format "%s.el" module)))) (if (file-exists-p filename) (load filename nil (not minemacs-verbose)) (let ((inhibit-message t)) (apply #'message (list ... module))))) (setq tail (cdr tail)))))
load-with-code-conversion("/Users/mandar/.emacs.d/init.el" "/Users/mandar/.emacs.d/init.el" t t)
load("/Users/mandar/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0x155e4b3bac66f5>) #f(compiled-function () #<bytecode -0x1f3c61addc0da035>) t)
command-line()
normal-top-level()
from minemacs.
I love this configuration - it's basically all the best of Doom, with none of the overhead and complexity. Thank you !
I am experiencing the same error & have been able to semi workaround it, mainly by accepting that I'll get the error above. It seems to be a problem loading the doom-themes package & the order when it's loaded. Loading the doom-themes package & calling the theme at the end loads everything without the error.
from minemacs.
Hello @mandarvaze ,
Thank you for the feedback, I'm trying to reproduce the error on a VM, but without success.
Can you please specify which OS and Emacs version you are using?
from minemacs.
Hi @jonathanwilner ,
Happy to hear that!
Can you please specify which OS and Emacs version you are using?, I'm trying to reproduce the error.
In the meanwhile, can you test the last commit?
from minemacs.
Hi @abougouffa - I tried the new commit and got the same result. :-(
I'm using MacOS 13.2 & Emacs 30 :
GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.2.0, NS appkit-2299.30
Version 13.1 (Build 22C65)) of 2023-01-09
from minemacs.
Thank you for the feedback @jonathanwilner ,
Unfortunately, I don't have access to a Mac, so I can't test this!
From what you've described, it seems that the problem occurs when loading doom-themes
early.
Please try the fix_doom_themes
branch.
from minemacs.
The fix_doom_themes branch fixed the problem! Thank you !
from minemacs.
Thank you for testing it, I will merge it into the main branch.
from minemacs.
Some additional context :
- I needed to add
minemacs-theme
back in my config.el - @abougouffa is this mandatory ? - I had to
make clean && emacs
: Not sure if this was related to missingminemacs-theme
earlier.
Now things are working.
BTW, now that I'm using minemacs at night, I get dark theme automatically ❤️
from minemacs.
@mandarvaze Great!
Yep, after this issue, I refactored the me-core-ui
module to defer loading the theme. This eliminates the problem you were getting!
For the minemacs-theme
, it is not mandatory, if you don't specify a theme name, MinEmacs will use the default theme doom-one-light
. So for example, if you want a dark theme, you can set it to doom-one
(the dark variant).
So if you used minemacs-theme
from the skel/config.el
template, you will get dark theme doom-one
, I don't think it loads day/night themes automatically, however if you want such a functionality, it can be easily implemented (a timer to switch to dark/light theme at a given time).
from minemacs.
Yeah, your explanation makes sense.
Earlier because of the error, I was getting doom-one-light
the default one which is all-white.
Once the issue was resolved, I now have doom-one
(I copied skel/config.el
to create my own) which is dark.
No magic 😞
from minemacs.
Related Issues (20)
- [BUG] about magit HOT 2
- [question] How to replace search results HOT 3
- [BUG] Issue with elpa Folder Deletion HOT 2
- [BUG] Not Loading config.el file HOT 3
- [BUG] Melpa folder gets put in the trash on MacOS HOT 1
- [Question] how to define my own module?
- [BUG] [Windows] Emacs freeze on file recovery HOT 10
- [BUG] theme revert back during commit change with magit HOT 1
- [BUG] Nix-ts-mode doesn't seem to work with tree-sitter HOT 10
- [BUG] Hook `minemacs-first-file-hook` doesn't seem to run HOT 34
- [BUG] Warning: ‘+spell-fu-register-dictionaries!’ is an obsolete HOT 1
- [BUG] Jinx compilation failed [Windows] HOT 4
- [BUG] Export org to latex and opening them doesn't work HOT 3
- [BUG] Bug with Corfu HOT 17
- [BUG] Asking for "Font installation directory" each startup HOT 2
- Cannot use LSP Servers, stuck on "starting" HOT 3
- [BUG] Dirvish crashes emacs on $HOME HOT 7
- [BUG] tramp cannot be installed correctly HOT 1
- [BUG] two package devdocs HOT 2
- [BUG] backgroud doom-modeline HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minemacs.