Giter Club home page Giter Club logo

Comments (9)

agzam avatar agzam commented on September 28, 2024 1

Is this achieved by hydra in mechanism?

Similar mechanism, but no, not hydra. AFAIK Spacemacs uses evil and evil-leader.

from .spacemacs.d.

agzam avatar agzam commented on September 28, 2024

Spacemacs layers are just neatly organized collections of elisp packages. packages.el you're pointing to is basically a "meta" package.

Of course one can cherry pick whatever they want from there. Mostly, you want to grab things within use-package blocks. What exactly are you confused about?

from .spacemacs.d.

hongyi-zhao avatar hongyi-zhao commented on September 28, 2024

Of course one can cherry pick whatever they want from there. Mostly, you want to grab things within use-package blocks. What exactly are you confused about?

Thank you. This is what I've done finally. And I've successfully set up most of them according to my requirements.

Another question is the following strange short key setting:

"xld" #'define-it-at-point)))

Any hints for setting, grouping, invoking, and management a lot of personal customized shortcut keys?

Regards,
HY

from .spacemacs.d.

agzam avatar agzam commented on September 28, 2024

Another question is the following strange short key setting:

That particular bit as you probably guessed is specific to Spacemacs. In Spacemacs there's a lead key (by default set to SPC - hence the name). Basically, pressing "SPC x l d" sequence would call (define-it-at-point) function.

from .spacemacs.d.

hongyi-zhao avatar hongyi-zhao commented on September 28, 2024

Basically, pressing "SPC x l d" sequence would call (define-it-at-point) function.

Is this achieved by hydra in mechanism?

from .spacemacs.d.

agzam avatar agzam commented on September 28, 2024

Any hints for setting, grouping, invoking, and management a lot of personal customized shortcut keys?

That's a dense question. Without knowing your preferences, your setup - is it based on vanilla Emacs; Doom; Spacemacs; Prelude; maybe something else? It is hard to answer that question (sometimes, even knowing all that).

If you ask me, I am a die-hard Vimmer. I am completely sold on the idea of modality. I use Spacemacs and I would try to find good, easily recognizable mnemonically and ergonomically right combination of keys. For example, you may have noticed, most language related things in my config are collected under "SPC xl". "SPC x" in Spacemacs is used for "text related things", and I chose "l" for "language". So, "SPC xll" - runs sdcv-search-at-point, "SPC xlm" - Merriam-Webster thesaurus, etc.

from .spacemacs.d.

hongyi-zhao avatar hongyi-zhao commented on September 28, 2024

So, "SPC xll" - runs sdcv-search-at-point, "SPC xlm" - Merriam-Webster thesaurus, etc.

According to your above explanation, why not take the following easier to remember, more consistent way?

"SPC xls" - runs sdcv-search-at-point

from .spacemacs.d.

agzam avatar agzam commented on September 28, 2024

According to your above explanation, why not take the following more recognizable mnemonically and consistent way?
"SPC xls" - runs sdcv-search-at-point

Ha, because x and s are too close to each other. Pressing them quickly after each other is very inconvenient. And for something I use very often I usually would try to find double letter combinations. Like for example SPC xx is bound to flyspell-correct-at-point - I do use that a lot.

from .spacemacs.d.

hongyi-zhao avatar hongyi-zhao commented on September 28, 2024

Good idea, but combination and permutation theory limits your total available key binding number when you use too many repeated characters.

from .spacemacs.d.

Related Issues (1)

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.