I'm Filipe Silva (a.k.a @ninrod), Lead Software Architect working for the Brazilian Central Bank.
-
🏢 I’m currently working on PIX® and Open Banking.
-
📫 How to reach me:
:camel: evil operator to cycle *-case in text objects
License: Other
I'm Filipe Silva (a.k.a @ninrod), Lead Software Architect working for the Brazilian Central Bank.
🏢 I’m currently working on PIX® and Open Banking.
📫 How to reach me:
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 : /
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.