Giter Site home page Giter Site logo

Comments (7)

jeffbowman avatar jeffbowman commented on August 19, 2024

Thanks! Your link gives a 404 message, so I can't review.

from crafted-emacs.

erikLundstedt avatar erikLundstedt commented on August 19, 2024

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.

jeffbowman avatar jeffbowman commented on August 19, 2024

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.

erikLundstedt avatar erikLundstedt commented on August 19, 2024

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 loading rational-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 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

  1. that would require a lot of setup for us tiling-wm users
  2. keybindings are quite personal, thats why im only adding a few that i found usefull, and only for evil-users

from crafted-emacs.

erikLundstedt avatar erikLundstedt commented on August 19, 2024

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.

jeffbowman avatar jeffbowman commented on August 19, 2024

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

  1. that would require a lot of setup for us tiling-wm users
  2. 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.

erikLundstedt avatar erikLundstedt commented on August 19, 2024

@jeffbowman

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:

  1. making a tag dedicated to emacs/development stuff(I SOMETIMES "have" to use intelij)
  2. 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)

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.