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

Default theme and init-local.el not loading #27

Closed
priyadarshan opened this issue Apr 24, 2012 · 9 comments
Closed

Default theme and init-local.el not loading #27

priyadarshan opened this issue Apr 24, 2012 · 9 comments

Comments

@priyadarshan
Copy link

Hi,

Sorry to bother you already!

With a previous version of your .emacs.d, when Emacs is launched, the default theme (sanityinc-solarized-light) gets loaded.

I just cloned the current version, and the theme does not get loaded anymore. Also, I get the error:

sanityinc/emacs-lisp-setup: Symbol's function definition is void: rainbow-delimiters-mode

(That error message was not showing up with the older version.)

I also created a new file, init-local.eland added just a line, (require-package 'deft), but it seems that init-local is not loaded, too.

If I require manually the theme, or init-local, they do work, though.

I am using Emacs 24.0.95.1 on iMac with OS X 10.7.3

@purcell
Copy link
Owner

purcell commented Apr 24, 2012

You're on the same Emacs and OS as me, so I know this can work.

Under ~/.emacs.d/elpa/ you should have a subdir called rainbow-delimiters-20111125 -- is that missing, or differently-named?

(By the way, in your init-local.el, you'll also need a (provide 'init-local) at the end.)

@priyadarshan
Copy link
Author

I have rainbow-delimiters-20120424.

You are right of course, (provide 'init-local) was missing.

For the theme, I have color-theme-sanityinc-solarized-2.12

@priyadarshan
Copy link
Author

I tried this, with a test init-local.el

(setq mac-option-modifier 'super) ;; just for testing
(message "message")
(provide 'init-local)

Still, at startup it is not loading. If i do M-x load file with ~/.emacs.d/init-local.el, then it gets loaded.

@purcell
Copy link
Owner

purcell commented Apr 24, 2012

Looks like rainbow-delimiters.el got removed from the emacswiki upstream, so the package you have is broken. I've fixed the Melpa recipe now, so uninstall the rainbow-delimiters package, and then reinstall it (or restart Emacs) once the Melpa page has been updated to show "github" in the "source" column next to "rainbow-delimiters".

Regarding the init-local, once the provide line has executed, any further invocation of (require 'init-local) will do nothing. You would need to restart Emacs, or use eval-buffer or load-file for changes to take effect.

-Steve

@priyadarshan
Copy link
Author

Ok, I will do and let you know. Thanks!

@priyadarshan
Copy link
Author

Now that error message is gone, and the theme loads fine. Thank you!

It is not clear to me how to load automatically 'init-local' .You said:

Regarding the init-local, once the provide line has executed, any further invocation of (require 'init-local) will do nothing. You would need to restart Emacs, or use eval-buffer or load-file for changes to take effect.

Isn't that file first loaded by the (require 'init-local) in init.el? The (provide 'init-local) comes after that, like in all the other init-...el files. I am a little confused.

@purcell
Copy link
Owner

purcell commented Apr 24, 2012

Yes - without modifying any of the pre-existing files, if you add an ~/.emacs.d/init-local.el file containing code like this:

your config here
(provide 'init-local)

then it should get loaded automatically at startup. That's what I tested locally, and it works for me.

-Steve

@priyadarshan
Copy link
Author

Thank you so much Steve. I restarted Emacs again, and now everything works as it should.

Thank you so much for your time and patience.

@purcell
Copy link
Owner

purcell commented Apr 24, 2012

No problem - happy hacking.

qioixiy pushed a commit to qioixiy/emacs.d that referenced this issue Aug 5, 2017
* lispy.el (lispy-kill): Use lispy-left and lispy-right instead of
  ?\( and ?\).

* lispy-test (lispy-kill): Add tests.

Fixes purcell#27.
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