Giter Site home page Giter Site logo

new recipe point-stack about el-get HOT 9 CLOSED

gizmomogwai avatar gizmomogwai commented on August 18, 2024
new recipe point-stack

from el-get.

Comments (9)

dimitri avatar dimitri commented on August 18, 2024

Applied, thanks!

I wonder if doing the global-set-key in the :after function from the main el-get recipe is a good idea for users, though.

from el-get.

gizmomogwai avatar gizmomogwai commented on August 18, 2024

Hi dimitri,

i am sure, that thats not a good idea ;-)
how do you do it. do you have a final el-file with all your keybindings?

regards

from el-get.

dimitri avatar dimitri commented on August 18, 2024

I have a dim-packages.el file with my packages and their :after functions, yes. It looks a lot like what I posted in my blog entry here:

http://tapoueh.org/articles/news/_el-get_reaches_1.0.html

    (:name goto-last-change
           :after (lambda ()
                    (global-set-key (kbd "C-x C-/") 'goto-last-change)))

I will remove your bindings now :)

from el-get.

gizmomogwai avatar gizmomogwai commented on August 18, 2024

ah cool ... i did not understand that it is possible to use a name from a recipe and have user-specific after-functions. thats great!

from el-get.

dimitri avatar dimitri commented on August 18, 2024

In fact, the final recipe is a merge between what you say and what the el-get recipe says, with your properties winning. Unless you give the :type too, in this case you're supposed to be giving the full recipe.

from el-get.

gizmomogwai avatar gizmomogwai commented on August 18, 2024

so would it also be possible to give some default values to the el-get recipe for the binding, and if someone wants another binding he can replace the after function?
or would it be useful to have a separate keybindings function for each recipe?

from el-get.

dimitri avatar dimitri commented on August 18, 2024

Well I don't want to go too far with el-get, I prefer the user to setup the packages for themselves. I'm not willing to offer a menu based thing ala ELPA e.g., I expect the end user to have to hand-maintain his own .emacs setup. They will have to add point-stack to their el-get-sources list, it's easy enough to add a :after function there and set the keys (maybe they will do that only for some modes, too).

So I've let your keybindings as comments...

from el-get.

gizmomogwai avatar gizmomogwai commented on August 18, 2024

i understand.
besides .. point-stack is not my emacs-code. its from the guy in the blog.
i just wanted to try out el-get with a small lib :) thanks for the good work.
it took me some time to get started, but now i really like it.

from el-get.

dimitri avatar dimitri commented on August 18, 2024

Nice! Give goto-last-change a try!

from el-get.

Related Issues (20)

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.