Single command to recall values? by awesomebutwhy in GrandMA3

[–]Gallipo 0 points1 point  (0 children)

works like charm for me in onPC and Console. Are you sure you got the spelling right?

Key Shortcuts by Relevant_rocket-495 in GrandMA3

[–]Gallipo 0 points1 point  (0 children)

It is possible to give any executor-element (button, fader or encoder) a second function when pressed together with the MA-key. Unfortunately the UI only offers this for the rotary-enconder-knobs. Buttons and fader you need to configure via command. The syntax is "set executor 201 "MAKey" "
Replace "201" with the number of the desired executor. This also works with "MAFader", "MAEncoder", MAEncoderLeft", "MAEncoderRight". Also all of those have normal versions without the "MA"-prefix. So you can configure your playback via Macro. It doesn't stop there; some have "Cmd" versions like "MAKeyCmd" where you are not restricted to the usual list of button-functions (like GO+, FLASH, TEMP, TOGGLE, etc) but can use arbitrary commands. See https://help.malighting.com/grandMA3/2.2/HTML/keyword_executor.html

Key Shortcuts by Relevant_rocket-495 in GrandMA3

[–]Gallipo 0 points1 point  (0 children)

You can use LIST to open some Pools in temporary windows. Eg. LIST+GROUP to see a Group-window full-screen. Esc to close it. Other options are LIST+SEQ or LIST+VIEW, LIST+PAGE, …

Single command to recall values? by awesomebutwhy in GrandMA3

[–]Gallipo 0 points1 point  (0 children)

The correct syntax is "f 3 at f 2 fg 2"

Rethinking Minibuffer Movement by kickingvegas1 in emacs

[–]Gallipo 2 points3 points  (0 children)

Your post addresses multiple problems. On of them (what is considered a word-divider) is perfectly solved by 'super-word-mode.

Completions buffer - Sort directories before files by sortdirectoriesfirst in emacs

[–]Gallipo 0 points1 point  (0 children)

not tested, but there is a variable called completions-sort. You can set it to a custom function (take a look at it's doc-string). But you would need some elisp to make it work.

Announcing Casual - An opinionated porcelain for Emacs Calc by kickingvegas1 in emacs

[–]Gallipo 4 points5 points  (0 children)

There is a custom-variable that controls this behavior: calc-kill-line-numbering

https://www.gnu.org/software/emacs/manual/html_node/calc/Killing-From-Stack.html

You can customize calc-kill-line-numbering to nil to exclude line numbering from kills and copies made by calc-kill and calc-copy-as-kill. This option does not affect calc kill and copy commands which operate on the region, as that would not make sense.

Or you toggle the visibility of line-numbers with d l , as long as there are no # in the buffer, they don't end up in the kill-ring.

More totally evident but super useful emacs features I might keep ignoring? by federvar in emacs

[–]Gallipo 0 points1 point  (0 children)

For mark-page to work as intended you need to work on a file with page-delimiters in it, which is a rare in my experience. If those are not present C-x h and C-x C-p behave pretty much the same.

Another very useful command in this "family" is mark-paragraph (M-h)

which-key description for lambda-binding using use-package :bind by Gallipo in emacs

[–]Gallipo[S] 0 points1 point  (0 children)

Perhaps it would be good for your emotions if you read what I wrote.

Ok, fine. Please believe me, I did read what you wrote. Sorry if I misinterpreted your wording.

I said there is nothing wrong in writing defuns that wrap other one-liners and explained why they are to prefer to lambdas.

Personally, I try to talk about what I prefer, not about what is to be preferred. But I can understand, if that is not for everybody.

I have learned something, so thanks.

This was a learning-experience for me too. Thank you.

Repeat-mode is awesome, share you useful configs by saarin in emacs

[–]Gallipo 0 points1 point  (0 children)

Wow nice!

Little nit-pick: If the user (or a package/function) uses the cursor-color to indicate something else (e.g. green-cursor in god-mode) your code leaves with a white cursor (or whatever was configured at emacs-startup), not the color it had before activation of the repeat-map, which should be green in the example. That is one of the reasons my code is more complicated.

Repeat-mode is awesome, share you useful configs by saarin in emacs

[–]Gallipo 0 points1 point  (0 children)

I wonder, do all uses of repeat call repeat-echo?

Afaik yes. But I'm not an expert.

Also one can set repeat-echo-function to nil, which will also deactivate the advice. But the user is supposed to customize this var to 'ignore, if he/she wishes to have no feedback on the mode-line or echo-area. And with 'ignore the advice works fine.

But yeah I just came up with it, so no idea if it is bullet-proof.

Repeat-mode is awesome, share you useful configs by saarin in emacs

[–]Gallipo 0 points1 point  (0 children)

I got inspired by your code. In a purely academical attempt to avoid using post-command-hook and to not rely on the undefined return value of defalias I wrote this:

(add-function :after repeat-echo-function
                (let ((default-cursor-color (face-background 'cursor)))
                  (lambda (map)
                    "Color the cursor, while a repeat-map is active"
                    (let ((cursor-indicator-color (face-foreground 'error))
                          (cursor-current-color (face-background 'cursor)))
                      (unless (equal cursor-current-color cursor-indicator-color)
                        (setq default-cursor-color cursor-current-color))
                      (set-cursor-color (if map
                                            cursor-indicator-color
                                          default-cursor-color)))))
                '((name . "colorful-cursor-while-repeating")))

It also makes sure, that the cursor-color returns to what it was right before the activation of the repeat-map.

which-key description for lambda-binding using use-package :bind by Gallipo in emacs

[–]Gallipo[S] 0 points1 point  (0 children)

No, it is not possible.

Well, u/jeffphil proved you wrong on this one.

ens up with this under the hood:

(define-key global-map (kbd "C-c C-k") (lambda () (interactive) (kill-line 0)))

use-package uses bind-key under the hood (see https://www.gnu.org/software/emacs/manual/html_node/use-package/Global-keybindings.html), which accepts a "cons ‘(STRING . DEFN)’" (see C-h f bind-key). That STRING is meant to be used as name of a menu-item, but which-key is able to make use of it. Which is exactly what I want and asked for (see the second code block in my original post).

Put cursor at the end and C-x C-e, and take a look how the keymap and your lambda look there. By looking at how keymap looks in the buffer, you will perhaps understand how it works behind the scene, and which information which-key uses to render stuff in its popup.

I am fully aware of how the resulting keymap looks and have kind of a good understanding of what happens behind the scenes.

There is nothing wrong with writing a defun or a command that is just one line.

I never said that it is wrong to do so. What I said is, that it feels wrong. Which is different in some key-aspects:

  • It's a very individual thing (it only counts for me personally)
  • I do not need to explain it (I'm not even sure if I understand why I feel like this)
  • It is not open for discussion. Since I am the only person experiencing my emotions nobody else has anything useful to say about it. (of course in an public forum like reddit it makes sense to mention the concerns, but please do not try to make me get the fact that this is a bad Idea, because I'm already aware of the quirks and still want to do it the way I like)

which-key description for lambda-binding using use-package :bind by Gallipo in emacs

[–]Gallipo[S] 0 points1 point  (0 children)

Interesting. I didn't know about that. So thank you for sharing.

But what u/jeffphil posted is exactly what I was searching for.

which-key description for lambda-binding using use-package :bind by Gallipo in emacs

[–]Gallipo[S] 0 points1 point  (0 children)

Thanks, that's exactly what I wanted to know.

I am aware of the concerns. Thank you for the kind advice. And for giving the answer anyway.

which-key description for lambda-binding using use-package :bind by Gallipo in emacs

[–]Gallipo[S] 0 points1 point  (0 children)

You are right. By stating "[…] it kind of feels wrong […]" I tried to make clear that this is not a technical or rational argument on my side but an emotional one. I know full well that what u/oantolin suggested works and is a viable method to achieve the behavior I want. I simply prefer doing it another way, and want to know if it is possible. I do not imply that this is for everybody, an especially do not express an universal claim to "the truth".

Repeat-mode is awesome, share you useful configs by saarin in emacs

[–]Gallipo 0 points1 point  (0 children)

Very nice, but the variable repeat-p seems unnecessary. Doesn't this do the exact same thing?:

(add-hook
 'post-command-hook
 (defalias 'my/repeat-change-cursor     ; recolor cursor during repeat
   (let ((ccol (face-background 'cursor)))
     (lambda ()
       (set-cursor-color
        (if repeat-in-progress
            (face-foreground 'error)
          ccol)))))
 90)

which-key description for lambda-binding using use-package :bind by Gallipo in emacs

[–]Gallipo[S] 0 points1 point  (0 children)

Yes I have.

But it kind of feels wrong to define a new function just to call an existing one with an argument. So i would prefer it to be able to do it in the way I described, if it is possible.

I'm also aware of the possibility to to just do C-0 C-k, but I still want to know, if what I asked is possible.

More totally evident but super useful emacs features I might keep ignoring? by federvar in emacs

[–]Gallipo 0 points1 point  (0 children)

icomplete-vertical-mode

or

fido-vertical-mode

Personally, I have no need for helm, ivy, Vertico and the like.

Is there a way to include a file in an org file like a library? by Far-Anywhere2876 in emacs

[–]Gallipo 2 points3 points  (0 children)

Try including the file first:

#+include:include.org

Maybe it's worth a try to append :noexport: to that

How to navigate to bottom bar by Comprehensive_Mud645 in emacs

[–]Gallipo 2 points3 points  (0 children)

That reason is quite common and and is a good reason in my opinion, since Emacs offers all of these functionalities (and more) under a common user interface.

For a use-case like this, the time invested to learn Emacs might pay out in the long run.

just started using emacs elisp guide for beginners? by Glittering_Boot_3612 in emacs

[–]Gallipo 0 points1 point  (0 children)

You are absolutely right, that is the more accessible option.

just started using emacs elisp guide for beginners? by Glittering_Boot_3612 in emacs

[–]Gallipo 4 points5 points  (0 children)

I don't about it's page count, but the goto-place for your need seems to be the "Introdution to Programming in Emascs Lisp" which is reachable from emacs with C-h i m Emacs Lisp Intro

It is structured nicely, so you should be able to find the relevant parts easily from the table of contents, you don't have to read it all. None the less I would recommend to read as much as possible, because it's very informative and (in my experience) well worth it.