freetonik / emacs-dotfiles

My Emacs config
116 stars 14 forks source link

init.elc #3

Open mmrezaie opened 5 years ago

mmrezaie commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Can you show your full config?

mmrezaie commented 5 years ago

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.