On Wed, Mar 1, 2017 at 12:00 AM, Greg Hendershott <greghendersh...@gmail.com > wrote:
> Just saw this now. Alex, thanks for helping! > > For Emacs packages that I'm not actively hacking on, I'm a fan of > using Emacs' package manager to install them their dependencies. > Yeah, I tried that. The package system wasn't working properly and rather than spend a lot of time yak shaving on why I just installed the code directly. At least, I think. I know I tried getting racket via package manager, and I know that the PM isn't working properly for me at the moment. Not sure if it was at the time, though. Probably. > For example with racket-mode: > > https://github.com/greghendershott/racket-mode#install > > > p.s. I also love the `use-package` package. That's the only package I > install with `package-install`: > > ;;; use-package > > (require 'package) > (setq package-enable-at-startup nil) ;; for `use-package' :defer > (setq package-archives '(("elpa" . "https://elpa.gnu.org/packages/") > ("melpa" . "https://melpa.org/packages/"))) > (package-initialize) > (unless (package-installed-p 'use-package) > (message "use-package not installed. Trying to install") > (package-refresh-contents) > (package-install 'use-package)) > (require 'use-package) > (require 'bind-key) > > Then rest of my init file is `use-package` macros that take care of > installing and configuring the dozens of packages I use. As one > example: > > (use-package expand-region > :ensure t > :bind (("M-SPC" . er/expand-region))) > > The `:ensure t` installs it if necessary. > > This also means I can plop my init.el on a new machine, start Emacs, > and everything installs. > > > On Tue, Feb 28, 2017 at 5:42 PM, David Storrs <david.sto...@gmail.com> > wrote: > > *blink* > > > > It did not even occur to me that someone would give their library a > > one-character name -- I'd been assuming that it was mis-parsing the name > of > > whatever it was trying to load. I should have checked that before > asking. > > Thanks. > > > > On Tue, Feb 28, 2017 at 5:17 PM, Alex Harsanyi <alexharsa...@gmail.com> > > wrote: > >> > >> On Wednesday, March 1, 2017 at 5:30:06 AM UTC+8, David K. Storrs wrote: > >> > I'm sending this to the list because I suspect I'm not the only one > who > >> > will ever have this issue and the next person should now be able to > google > >> > for it. > >> > > >> > GNU Emacs 24.5.1 > >> > Darwin MacBook-Pro.lan 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 > >> > 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64 > >> > > >> > I've been using racket-mode for a while now and enjoying it. I'm not > >> > sure what changed, but suddenly it is causing my .emacs to not load. > These > >> > are the first two lines in my .emacs: > >> > > >> > (add-to-list 'load-path "~/.emacs.d/elpa/racket-mode-20161101.1859/") > >> > (require 'racket-mode) > >> > > >> > > >> > I don't recall how I installed racket-mode -- whether it was elpa, > >> > directly download, etc. > >> > > >> > > >> > > >> > > >> > When Emacs starts it throws up an error buffer saying: > >> > ------- > >> > Warning (initialization): An error occurred while loading > >> > `/Users/dstorrs/.emacs': > >> > > >> > File error: Cannot open load file, No such file or directory, s > >> > > >> > To ensure normal operation, you should investigate and remove the > >> > cause of the error in your initialization file. Start Emacs with > >> > the `--debug-init' option to view a complete error backtrace. > >> > ------- > >> > > >> > I've commented out everything else in the .emacs file so I know it's > >> > racket mode that is causing the issue. The error happens on the > require > >> > line. I've attached the full output of the debug-init dump. > >> > > >> > > >> > I never shut Emacs down, so it's possible that I had this issue > sometime > >> > long ago, resolved it for the current session, and then didn't see it > again > >> > until today I decided that I would procrastinate by debugging this. > >> > > >> > > >> > > >> > Removing the (add-to-list 'load-path > >> > "~/.emacs.d/elpa/racket-mode-20161101.1859/") line and moving > (require > >> > 'racket-mode) to the end of the .emacs file means that I still get the > >> > initialization error, but all of my customization has already been > processed > >> > and everything including racket-mode is working fine. > >> > > >> > > >> > I have no idea what is up with this. > >> > > >> > Any thoughts on how to fix it? > >> > >> racket-mode depends on a library named "s", it looks like this library > is > >> missing on your machine. See https://github.com/magnars/s.el, or > install it > >> via the emacs package manager. > >> > >> Best Regards, > >> Alex. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Racket Users" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to racket-users+unsubscr...@googlegroups.com. > >> For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to racket-users+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.