Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
Nice! Give goto-last-change a try!
from el-get.
Related Issues (20)
- Byte compilation should be separately done for each file
- Usage of 'go get' for recipes of type "go" is broken with golang 1.16+
- company-mode.rcp out of date HOT 1
- (el-get-bundle elpa:magit) fails to resolve correct dependencies
- Using ~/.config/emacs instead of ~/.emacs.d HOT 3
- el-get from melpa does not include info documentation for el-get. WTF?
- Continuous integration for el-get packages HOT 6
- adoc-mode has moved/been adopted
- Unable to activate lsp-docker
- better-defaults repo url is invalid
- Incorrect recipe for git-timemachine HOT 1
- Recipe for scratch package is out of date
- Depends deprecated `autoload` package HOT 1
- missing :files directive in systemd-mode recipe
- mastodon recipe points to incorrect repository
- el-get-self-update fails to update (melpa directory)
- Problem when installing el-get on emacs 29.1 HOT 6
- Sync raises error in Emacs 29.1
- A way to have a subfolder in recipe
- `profile-dotemacs` recipe URL returns 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from el-get.