oh-my-fish / plugin-emacs

Wrapper for daemon functionality of Emacs.
MIT License
19 stars 10 forks source link

Error upon entering `/usr/bin` or `/usr/local/bin` #16

Closed pymander closed 3 years ago

pymander commented 3 years ago

I have multiple versions of Emacs installed -- but I am not sure that is the problem. When I cd into either /usr/bin or /usr/local/bin, I get the following error:

Invalid argument: ''                                                                                                      14:20:23
~/.config/fish/functions/./emacs.fish (line 30):
  if test "$__emacs_version" -gt 23
     ^
in function 'init' with arguments '/home/pymander/.local/share/omf/pkg/emacs'
    called during startup
in event handler: handler for generic event “init_emacs”
    called during startup
Invalid argument: ''
~/.config/fish/functions/./emacs.fish (line 30):
  if test "$__emacs_version" -gt 23
     ^
in function 'init' with arguments '/home/pymander/.local/share/omf/pkg/emacs'
    called during startup
in event handler: handler for generic event “init_emacs”
    called during startup
pymander commented 3 years ago

Nevermind, that must have been an older version. I had the plugin in two places and it was screwing up something! My bad.