Coder Social home page Coder Social logo

evil-string-inflection's Introduction

evil-string-inflection's People

Contributors

kshenoy avatar ninrod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

evil-string-inflection's Issues

Error during startup

Hi, I'm facing a quite peculiar error. Whenever I start emacs, I get the following error message:

Debugger entered--Lisp error: (void-function evil-define-operator)
  (evil-define-operator evil-operator-string-inflection (beg end _type) "Define a new evil operator that cicles underscore -> UPCASE -> CamelCase." :move-point nil (interactive "<R>") (let ((str (buffer-substring-no-properties beg end))) (save-excursion (delete-region beg end) (insert (string-inflection-all-cycle-function str)))))
  eval-buffer(#<buffer  *load*-822854> nil "/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815/evil-string-inflection-autoloads.el" nil t)  ; Reading at buffer position 680
  load-with-code-conversion("/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815/evil-string-inflection-autoloads.el" "/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815/evil-string-inflection-autoloads.el" nil t)
  load("/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815/evil-string-inflection-autoloads" nil t)
  package--activate-autoloads-and-load-path([cl-struct-package-desc evil-string-inflection (20171225 1815) "snake_case -> CamelCase -> etc. for text objects" ((emacs (24)) (evil (1 2 13)) (string-inflection (1 0 6))) nil nil "/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815" ((:url . "https://github.com/ninrod/evil-string-inflection") (:commit . "f13a4aab75e5d50c0c63c126c4cbc0067d452d85")) nil])
  package--load-files-for-activation([cl-struct-package-desc evil-string-inflection (20171225 1815) "snake_case -> CamelCase -> etc. for text objects" ((emacs (24)) (evil (1 2 13)) (string-inflection (1 0 6))) nil nil "/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815" ((:url . "https://github.com/ninrod/evil-string-inflection") (:commit . "f13a4aab75e5d50c0c63c126c4cbc0067d452d85")) nil] nil)
  package-activate-1([cl-struct-package-desc evil-string-inflection (20171225 1815) "snake_case -> CamelCase -> etc. for text objects" ((emacs (24)) (evil (1 2 13)) (string-inflection (1 0 6))) nil nil "/home/kshenoy/.emacs.d/elpa/evil-string-inflection-20171225.1815" ((:url . "https://github.com/ninrod/evil-string-inflection") (:commit . "f13a4aab75e5d50c0c63c126c4cbc0067d452d85")) nil] nil deps)
  package-activate(evil-string-inflection)
  package-initialize()
  eval-buffer(#<buffer  *load*> nil "/home/kshenoy/.emacs.d/init.el" nil t)  ; Reading at buffer position 303
  load-with-code-conversion("/home/kshenoy/.emacs.d/init.el" "/home/kshenoy/.emacs.d/init.el" t t)
  load("/home/kshenoy/.emacs.d/init" t t)
  #[0 "�\205\266

I'm not sure why it's unable to find evil-define-operator as my (use-package evil-string-inflection) call is located with evil's :config block so at that time, evil must be done loading. Also, I'm loading other evil-plugins which define operators before this (eg. evil-commentary, evil-exchange).

Hmm, digging more into this. This doesn't seem to be a load-order issue as it throws the error during the first package-initialize call. So even if I comment out the use-package call to this, I still see the error. Only thing that helps is deleting the package from elpa. I'm more confused than ever : /

Package binding hides a useful evil binding

The binding for g~ defined by evil (evil-invert-case) is actually useful. I bind evil-operator-string-inflection to g- which is a great mnemonic, easier to type and currently unused in evil. However g~ is still lost unless I rebind it. Consider a different binding or making the default binding optional.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.