Comments (7)
Thanks! Your link gives a 404 message, so I can't review.
from crafted-emacs.
Thanks! Your link gives a 404 message, so I can't review.
thats strange
apparently you might have to loggin
https://gist.github.com/erikLundstedt/1182a024fe700ecafb7b8c6d3c39ad05
from crafted-emacs.
apparently you might have to loggin
I tried logging in, but the link still didn't work for me. Maybe your repo is private?
Thanks for the gist though! You don't (require 'speedbar)
so I get an error when I (require 'rational-speedbar)
Debugger entered--Lisp error: (void-function speedbar-add-supported-extension)
This is resolved by adding (require 'speedbar)
before loading rational-speedbar
.
For other feedback:
- I'd cleanup the multiple blank lines
- cleanup the closing parens (see https://github.com/bbatsov/emacs-lisp-style-guide).
- I agree with your opinion on the icons, but maybe don't include that part of the comment in the final version. I would suggest this for all other opinion based comments as well (eg. "why would you", etc)
- No, I would not automatically start speedbar. It might be interesting to add a key binding to toggle speedbar visibility. If you go this route, try using
emacs -Q
to make sure your suggested keybinding does not conflict with something already mapped.
from crafted-emacs.
apparently you might have to loggin
I tried logging in, but the link still didn't work for me. Maybe your repo is private?
it shouldnt be, I will check that as gitlab makes new repos private by default
Thanks for the gist though! You don't
(require 'speedbar)
so I get an error when I(require 'rational-speedbar)
Debugger entered--Lisp error: (void-function speedbar-add-supported-extension)
This is resolved by adding
(require 'speedbar)
before loadingrational-speedbar
.
I didnt think that was required as speedbar is part of core emacs, it might be required anyways but thats nothing ive noticed
For other feedback:
- I'd cleanup the multiple blank lines
- cleanup the closing parens (see https://github.com/bbatsov/emacs-lisp-style-guide).
I would do this before an actual merge
- I agree with your opinion on the icons, but maybe don't include that part of the comment in the final version. I would suggest this for all other opinion based comments as well (eg. "why would you", etc)
those comments are mainly for fun and can be cleaned if needed
- No, I would not automatically start speedbar. It might be interesting to add a key binding to toggle speedbar visibility. If you go this route, try using
emacs -Q
to make sure your suggested keybinding does not conflict with something already mapped.
im not sure about adding a keybind to toggle speedbar as
- that would require a lot of setup for us tiling-wm users
- keybindings are quite personal, thats why im only adding a few that i found usefull, and only for evil-users
from crafted-emacs.
Thanks! Your link gives a 404 message, so I can't review.
I have made it public now
it should never have been private but that was probably just me messing up when creating the repo in the UI
from crafted-emacs.
Regarding (require 'speedbar)
I didnt think that was required as speedbar is part of core emacs, it might be required anyways but thats nothing ive noticed
Yes, it is part of core Emacs, but M-x speedbar
runs an alias to an autoloaded function, so you don't have to require
it anywhere to enable using it. However, you do need to require it to load the definitions in code because the autoload feature does not know you want the file loaded when you are assigning a value to a variable. If you have run either M-x speedbar RET
interactively or if you call (speedbar)
in code, then the definitions are all loaded by the time you want to set the speedbar-add-supported-extension
value.
Hope that makes sense.
im not sure about adding a keybind to toggle speedbar as
- that would require a lot of setup for us tiling-wm users
- keybindings are quite personal, thats why im only adding a few that i found usefull, and only for evil-users
Fair point. I use AwesomeWM, but I don't seem to need to add any additional setup for keybinds in Emacs. Probably way off topic, but I'm curious about your use case.
More on topic, key bindings are indeed quite personal, I don't mind suggesting one, for example C-c C-s
, as that is not bound normally by Emacs, but documenting it would become very important so a user would know what happened. Leaving it out is very reasonable.
those comments are mainly for fun and can be cleaned if needed
I figured as much, I was amused.
And thanks for the module! I look forward to a final PR for this! I have often wanted to use speedbar but just haven't invested time in it. I tried Treemacs for a bit, but having to add projects to it seemed like an extra step that wasn't needed, so I stopped using that one too - although more for pragmatic reasons. I wish sr-speedbar were built-in. I find the extra frame for speedbar to be a bit annoying as I now have to configure its width etc (and this might be where I would have to do some work in my WM to get speedbar to "work" correctly visualy). sr-speedbar puts the speedbar in a window in the current frame.
from crafted-emacs.
Fair point. I use AwesomeWM, but I don't seem to need to add any additional setup for keybinds in Emacs. Probably way off topic, but I'm curious about your use case.
More on topic, key bindings are indeed quite personal, I don't mind suggesting one, for example C-c C-s, as that is not bound normally by Emacs, but documenting it would become very important so a user would know what happened. Leaving it out is very reasonable.
/.../
And thanks for the module! I look forward to a final PR for this! I have often wanted to use speedbar but just haven't invested time in it. I tried Treemacs for a bit, but having to add projects to it seemed like an extra step that wasn't needed, so I stopped using that one too - although more for pragmatic reasons. I wish sr-speedbar were built-in. I find the extra frame for speedbar to be a bit annoying as I now have to configure its width etc (and this might be where I would have to do some work in my WM to get speedbar to "work" correctly visualy). sr-speedbar puts the speedbar in a window in the current frame.
cool,I use awesome aswell
I have had similar issues with getting speedbar show up where i want it to, i ended up solving it by:
- making a tag dedicated to emacs/development stuff(I SOMETIMES "have" to use intelij)
- setting the
master_width_factor
to 0.2 (actually i set it to 1.0 divided by 5.0 but thats just because i had issues if i did it differently)
this makes the layout have a thin area for the filetree and let the rest be taken up by emacs(adjust the actuall value if needed, 0.2 seemed to work nicely for me but you should adjust if you use large gaps or wide padding)
so my layout now looks something like this:
[ ][ ]
instead of:
[ ][ ]
the issue with not starting speedbar on startup while using a tilling wm is that you have to find a whay to put it in the correct "node"(to borrow wording from bspwm) so it doesnt start ocypying the main area, I think I did this by loading the module and starting speedbar in after-init-hock
which seems to work (at least with a single screen)
from crafted-emacs.
Related Issues (20)
- [craftedv2beta] Broken configuration guards (Tracking Issue) HOT 4
- [craftedv2beta] Improve documentation for using straight.el HOT 7
- Provide option for easier module loading. HOT 7
- [craftedv2beta] Use `customize-save-variable` vs. `customize-set-variable`? HOT 11
- [craftedv2beta] Question regarding the skeleton for new modules HOT 5
- Discussion: When do our own `defcustom` variables make sense? When are they best avoided? HOT 6
- [craftedv2beta] Evil bindings in crafted-speedbar are duplicate and inconsistent with evil-collection HOT 3
- [craftedv2beta] Standardized way for naming functions HOT 5
- [craftedv2beta] Unused function `crafted-completion/minibuffer-backward-kill` HOT 2
- texinfo tags in doc headings don't seem to be needed HOT 3
- [v2] Emacs 29+ check for executable prevents Treesitter setup HOT 12
- [v2] No easy way to opt out of tree sitter parsers HOT 5
- [v2] Corfu + Eglot have unsuitable performance for medium/large projects HOT 4
- [v2] defgroup crafted-startup not functioning properly
- [v2]package-selected-packages "Combobulate" problem. HOT 3
- Automating regeneration of Info file HOT 13
- Suggestion: Make examples loadable HOT 3
- Symbol's function definition is void: treesit-auto-add-to-auto-mode-alist HOT 3
- `crafted-init-config` automatically finding directory possibly confounded by submodule use HOT 9
- Eglot doesn't automatically load when a relevant mode is visited until explicitly required HOT 10
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 crafted-emacs.