Giter Site home page Giter Site logo

selected-keymap is void about selected.el HOT 5 CLOSED

kungsgeten avatar kungsgeten commented on September 25, 2024
selected-keymap is void

from selected.el.

Comments (5)

Kungsgeten avatar Kungsgeten commented on September 25, 2024

Hmm, could you post the code that you put in your init.el? Have you installed selected.el by downloading it from GitHub or by installing it from MELPA?

from selected.el.

ejemba avatar ejemba commented on September 25, 2024

Basically, I already have many use-package package installed in my .emacs.
I just install selected.el via use-package this way.

(use-package selected
  :commands selected-minor-mode
  :bind (:map selected-keymap
              ("q" . selected-off)
              ("u" . upcase-region)
              ("d" . downcase-region)
              ("w" . count-words-region)
              ("m" . apply-macro-to-region-lines)))

When paste this in my init file I have the message reference to free variable 'selected-keymap' appearing as a tooltip,

When I copy/paste the content of selected.el in a scratch file and evaluate it, it works well. But the use-package integration does not seems to work.

from selected.el.

Kungsgeten avatar Kungsgeten commented on September 25, 2024

I'm not sure, but could it be because selected.el isn't in your load-path? Try "ensuring" it in order to download it from MELPA (if MELPA is in your package-archives):

(use-package selected
  :ensure t
  :commands selected-minor-mode
  :bind (:map selected-keymap
              ("q" . selected-off)
              ("u" . upcase-region)
              ("d" . downcase-region)
              ("w" . count-words-region)
              ("m" . apply-macro-to-region-lines)))

from selected.el.

ejemba avatar ejemba commented on September 25, 2024

All my other use-package were including this ":ensure t" sorry for this
thank you it resolves the issue.
I think you may update the readme.

from selected.el.

Kungsgeten avatar Kungsgeten commented on September 25, 2024

No problem! I've updated the readme.

from selected.el.

Related Issues (13)

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.