Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init.elc #3

Open
mmrezaie opened this issue Oct 22, 2019 · 5 comments
Open

init.elc #3

mmrezaie opened this issue Oct 22, 2019 · 5 comments
Assignees

Comments

@mmrezaie
Copy link

I am not sure if this is reporting of a problem, but maybe a question mostly. I am using this configuration as a baseline for my own configuration. One thing I do is that I start emacs as daemon and also I start an standalone emacs client (graphical one). One thing happens when I change the org-mode config is that it creates or forgets to update the "init.elc" file. So the next time when I start emacs I have to always remove that "init.elc" file. I wonder if this happens to others too, or I am doing something wrong or others do not use emacs --daemon!

@freetonik freetonik self-assigned this Oct 22, 2019
@freetonik
Copy link
Owner

Hey,

I'm not sure I understood you correctly. Why do you need to remove init.elc?

Regardless, I had other issues with emacs daemon (at least on macOS), so I adopted another approach: I don't start emacs daemon separately, but instead just launch Emacs when my computer starts. Emacs automatically starts a server (see https://github.com/freetonik/emacs-dotfiles#server). Then I can use emacsclient without problems.

Another workaround is to ditch byte-compiling altogether (remove line (byte-compile-file (concat user-emacs-directory "init.el")) from your config). This way init.elc is never created or used. This might make things slightly slower, though.

@mmrezaie
Copy link
Author

Another workaround is to ditch byte-compiling altogether (remove line (byte-compile-file (concat user-emacs-directory "init.el")) from your config). This way init.elc is never created or used. This might make things slightly slower, though.

I believe when I update the init.org, init.el gets updated on save, but not init.elc. So the next time I start emacs, it starts with inconsistent init.

@mmrezaie
Copy link
Author

This is what I get whenever I update the init.org file and the init.el.

Warning (initialization): An error occurred while loading ‘.../.emacs.d/init.elc’:
Symbol's value as variable is void: personal-keybindings

I hope it shows where the problem can be. "--debug" doesn't show much more meaningful information.

@freetonik
Copy link
Owner

Can you show your full config?

@mmrezaie
Copy link
Author

This is an ongoing work.
https://github.com/mmrezaie/dot-emacs

@freetonik I switched from spacemacs to this like two weeks ago mostly after listening to your podcast. thank you for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants