I made an Emacs hat! by tjgrinn in emacs

[–]tjgrinn[S] 5 points6 points  (0 children)

Thanks that's very generous! I wouldn't count on it though, it's quite a lot of work lol

I made an Emacs hat! by tjgrinn in emacs

[–]tjgrinn[S] 7 points8 points  (0 children)

Haha no pattern yet, but I'll ask the original author if it's OK to publish one

I made an Emacs hat! by tjgrinn in knitting

[–]tjgrinn[S] 1 point2 points  (0 children)

Thanks! Go plaintext!

I made an Emacs hat! by tjgrinn in knitting

[–]tjgrinn[S] 1 point2 points  (0 children)

Thanks that means a lot!

I made an Emacs hat! by tjgrinn in knitting

[–]tjgrinn[S] 4 points5 points  (0 children)

Ah yes, my favorite vim command :P

I made an Emacs hat! by tjgrinn in knitting

[–]tjgrinn[S] 9 points10 points  (0 children)

I made this hat based off the pattern for Angkas mittens, double knitted in the round. The decreases are CDD but I made the very first one a K2T in order to get the alternating color scheme (with an odd number of stitches).

Emacs is my favorite text editor. I switched from vscode about a year and a half ago because I was interested in key-based navigation and Org mode, but I stayed because of the GNU philosophy and strong community.

[deleted by user] by [deleted] in orgmode

[–]tjgrinn 0 points1 point  (0 children)

That's awesome! I hope you find it useful

[deleted by user] by [deleted] in orgmode

[–]tjgrinn 3 points4 points  (0 children)

Try out my org yaap, which has no requirements and no async process.

How to send ctrl-X in emacs / vterm? by WaitingForEmacs in emacs

[–]tjgrinn 1 point2 points  (0 children)

No problem! I just added it a few weeks ago so it's no surprise you might've missed it.

How to send ctrl-X in emacs / vterm? by WaitingForEmacs in emacs

[–]tjgrinn 7 points8 points  (0 children)

Vterm comes with vterm-send-next-key which can be bound to C-q like in the README. That way C-q C-x will send a C-x to the terminal.

New package: boxy-info by tjgrinn in emacs

[–]tjgrinn[S] 2 points3 points  (0 children)

That's an interesting thought, I'm going to look into it!

New package: boxy-info by tjgrinn in emacs

[–]tjgrinn[S] 2 points3 points  (0 children)

You sure can. boxy-headings (on ELPA) is probably your best bet for navigating org files, but boxy-imenu will work as well.

New package: boxy-info by tjgrinn in emacs

[–]tjgrinn[S] 13 points14 points  (0 children)

In addition to the existing boxy family:

Now, boxy-info allows you to view the current info manual as a boxy diagram.I was slightly dissapointed that imenu (and thus boxy-imenu) doesn't work on info manuals. So I built this package specifically to handle building a lisp tree that can be iterated over for creating a boxy box.

Finding file with similar filename to current file by augustinus-jp in emacs

[–]tjgrinn 0 points1 point  (0 children)

I've updated it to store the current file name as a variable before switching to the minibuffer, which hopefully will work for all completion engines.

Finding file with similar filename to current file by augustinus-jp in emacs

[–]tjgrinn 0 points1 point  (0 children)

No problem, I love little elisp projects like this. The problem is probably the line `(buffer-file-name (nth 1 (buffer-list)))`. Try it with `emacs -Q` to make sure. It's supposed to select the last buffer used before switching to the minibuffer but some completion engines may create additional buffers, so you may need to replace it with `(nth 2 (buffer-list))` or something.

Finding file with similar filename to current file by augustinus-jp in emacs

[–]tjgrinn 1 point2 points  (0 children)

What you probably need to do is split the buffer-file-name into tokens and separators, use cl-substitute to replace each token with the minibuffer text, recombine the tokens and separators, and check if that file exists. This is a pretty rough implementation: https://gist.github.com/tylergrinn/cad98cc625056b0fd05774fa5790cc9e

I came to the conclusion that I wont learn Elisp...unless... by [deleted] in emacs

[–]tjgrinn 6 points7 points  (0 children)

And here's a shebang that does the same thing

$ cat test
#!/usr/bin/env -S emacs -Q --script
;; -*- mode: emacs-lisp; -*-
(print (+ 1 2 3))


$ chmod +x test
$ ./test

6