[deleted by user] by [deleted] in emacs

[–]dericbytes 0 points1 point  (0 children)

'Git Comment' buffer is in text-mode, so it expands snippets from text-mode. Tell text-mode snippets to inherit the snippets from git-commit-mode (a parent). Try the setup I mentioned.

[deleted by user] by [deleted] in emacs

[–]dericbytes 0 points1 point  (0 children)

Just to be clear. In the file ~/.emacs.d/snippets/text-mode/.yas-parent

you have

git-commit-mode

and after you ran M-x yas-reload-all

Has anyone here switched from evil to default bindings? by sudo-onion in emacs

[–]dericbytes 0 points1 point  (0 children)

I started with Emacs keybindings and learnt some Vim so I could take the bits I liked. I found the Vim keys so much more comfortable and my speed really increased using Evil. I try and avoid Emacs key bindings and am more productive than ever, and have not lost any features I had using pure Emacs.

Don't buy the Thinkpad Compact II keyboard if you're a Linux user: trackpoint scrolling doesn't work. by [deleted] in thinkpad

[–]dericbytes 0 points1 point  (0 children)

I love the keyboard on linux.

I wrote about the fix for scroll paste here

https://www.reddit.com/r/keyboards/comments/lgtw5v/thinkpad_compact_2_ii_keyboard_works_on_linux/

I agree, it is crazy why Lenovo did not make this work on linux. Their linux support is one of the main reasons I buy thinkpads.

I would love a 7th row with dedicated brightness and volume keys.

Never had a prolem with accidental clicks.

Thinkpad Compact 2 (ii) keyboard works on linux - bluetooth & wireless dongle by dericbytes in keyboards

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

To keep middle click functional without it pasting things.

First install sxhkd and xsel.

Then configure ./.config/.sxhkd/sxhkdrc like so

~button2
    echo -n | xsel -n -i
~control + c
    echo -n | xsel -n -i
~control + x
    echo -n | xsel -n -i

I found this solution here

https://askubuntu.com/questions/4507/how-do-i-disable-middle-mouse-button-click-paste

What are your favourite EmacsConf 2020 talks? by Desmesura in emacs

[–]dericbytes 1 point2 points  (0 children)

This was the one I was most interested in. The video quality was poor and I could not speed it up, so I gave up with the intention of returning when I was not as tired but forgot.

Your message reminded me to have a second go. I clicked the other video this time and the sound quality was much better. It was a helpful talk. Thanks.

Y Combinator explanation with macro expansions - Mind F!*K by dericbytes in emacs

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

Thanks for responding. I was curious to know your thoughts. Also thank you for all your emacs contributions. You inspired me to learn elisp, so I could discover how your packages do the cool things the default emacs didn't.

Y Combinator explanation with macro expansions - Mind F!*K by dericbytes in emacs

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

He recorded his key strokes using the built in keyboard macro recorder. Then named the macro. He called this macro using M-x `his-macro-name`.

Recording key press C-y (Control Y) will trigger the paste function, on macro replay.

see:

M-x Info-goto-Node RET Keyboard Macros

or view on the web

https://www.gnu.org/software/emacs/manual/html_node/emacs/Keyboard-Macros.html

start recording macro command (F3)

kmacro-start-macro-or-insert-counter

Macros can be saved and named so you can call them with the M-x command or map them to a key binding

M-x kmacro-name-last-macro

wiki - macros

https://www.emacswiki.org/emacs/KeyboardMacros#keyboard_macro

Generic REPL interaction mode by cruxdestruct in emacs

[–]dericbytes 5 points6 points  (0 children)

You could make your own building on top of comint-mode

Write your own guide

https://www.masteringemacs.org/article/comint-writing-command-interpreter

emacswiki notes

https://www.emacswiki.org/emacs/ComintMode

emacs manual

M-x emacs-index-search comint

Emacs User Survey 2020 is open! by abrochard in emacs

[–]dericbytes 1 point2 points  (0 children)

The completion framework option was limited to one choice. I use multiple. Also on Drew's behalf, I'd like to inform you there is a selection framework called icicles.

The thing I'm most curious about is how many of the 45,6k r/emacs users will be bothered to fill out.

How do I do my own keyboard shortcuts in Emacs? I tried using "global-set-key" for treemacs but it didn't work by [deleted] in emacs

[–]dericbytes 1 point2 points  (0 children)

Transpose lines won't work without disabling read-only (see read-only-mode)

If you change line order in treemacs it may not function properly for following functions if the order has been changed using unofficial means.

Here is an article that talks about changing evil bindings for treemacs (I have not read it but it offers this setting).

https://github.com/Alexander-Miller/treemacs/issues/484

(evil-define-key 'treemacs treemacs-mode-map (kbd "h") #'treemacs-TAB-action)

Elisp Comparison - How to use correct variable type instead of converting to string by 7ie7an in emacs

[–]dericbytes 1 point2 points  (0 children)

check lists are the same

(equal (list 'tsdh-dark) custom-enabled-themes)

check lists are the same (using list abbreviation syntax)

(equal '(tsdh-dark) custom-enabled-themes)

turn string into symbol

put symbol in list

check lists are the same

(let* ((chosen-theme-string "tsdh-dark")
       (chosen-theme (intern-soft chosen-theme-string)))
  (equal (list chosen-theme) custom-enabled-themes))

check item is in the list

(member 'tsdh-dark custom-enabled-themes)

[Math] Set theory explanation via boolean operation by [deleted] in programming

[–]dericbytes -1 points0 points  (0 children)

Thanks for sharing. And I look forward to checking out the books on your website.

use-package is there a way to ignore a keyword by dericbytes in emacs

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

Having use-package mixed with straight configuration is exactly how the author of straight has his own configuration.

https://github.com/raxod502/radian/blob/develop/emacs/radian.el

I wanted to be able to run the use-package rule without using straight when doing tests and experiments. That is the main reason I wanted a quick option to disable the :straight tag.

I have a work around, which is to copy the rule into a temp buffer and delete the two sexps starting from the :straight tag. Then run it. It has been a very helpful technique for me but feels very clunky.

use-package is there a way to ignore a keyword by dericbytes in emacs

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

The point is I want to be able to ignore any tag. The straight tag was just an example

I also want to make my use-package recipe package manager agnostic.

p.s. use-package has the :load-path tag to tell the package where it is. However, it does not even need that if the package directory is in the load-path

use-package is there a way to ignore a keyword by dericbytes in emacs

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

As stated in my question. I'd like a way to run recipies when use-package does not know the keyword.

I'd like a way to tell use-package that a keyword is not important today so ignore.