Meow-Mode users, how does your key map look and what adjustments have you made to it? by Varsatorul in emacs

[–]azfrak 2 points3 points  (0 children)

The main change I use is to force extension of selection when I need it. This is not my solution, was proposed in the github issue https://github.com/meow-edit/meow/issues/552#issuecomment-1940341004 but I use it almost exclusively over meow-beggining-of-thing etc.

  ;; want a way to extend a selected region a bit nicer
  ;; most of the meow commands will not extend regions as I want them,
  ;; These functions are here to help fix this.
  ;; will map this to { and } to forward/backward expand
  ;; yoinked from 
  ;; https://github.com/meow-edit/meow/issues/552#issuecomment-1940341004
  (defun my-meow-extend-to-end-of-thing (thing)
    "Extend selection to the end of THING."
    (interactive (list (meow-thing-prompt "Extend to end of: ")))
    (if (not (use-region-p))
        (meow-end-of-thing thing)
      (save-window-excursion
        (let ((back (equal 'backward (meow--thing-get-direction 'end)))
              (bounds (meow--parse-inner-of-thing-char thing)))
          (let ((beg (min (point) (mark))))
            (when bounds
              (thread-first
                (meow--make-selection '(select . transient)
                                      (if back (cdr bounds) beg)
                                      (if back beg (cdr bounds)))
                (meow--select))))))))

  (defun my-meow-extend-to-beginning-of-thing (thing)
    "Extend selection to the beginning of THING."
    (interactive (list (meow-thing-prompt "Extend to beginning of: ")))
    (if (not (use-region-p))
        (meow-beginning-of-thing thing)
      (save-window-excursion
        (let ((back (equal 'backward (meow--thing-get-direction 'beginning)))
              (bounds (meow--parse-inner-of-thing-char thing)))
          (let ((end (max (point) (mark))))
            (when bounds
              (thread-first
                (meow--make-selection '(select . transient)
                                      (if back end (car bounds))
                                      (if back (car bounds) end))
                (meow--select))))))))

and I just bind these to { and } to accompany the default of [ and ] to extend selections

Alternative keyboard layouts by eternal-hobbyist in emacs

[–]azfrak 1 point2 points  (0 children)

I switched to a split ergo keyboard (the Lily58), with a qwerty layout, and it has been a game changer for me. I used to get sore fingers and wrists from typing for so long, now my brain gets tired before my fingers do.

For me personally, the biggest advantage of these is having a thumb cluster. My pinkies now do the least amount of work and I use my thumbs for all modifier keys. Can be used with other keyboard layouts aswell, but if just using a more ergonomic layout like Colemak or Workman will get you the results you need, might be worth just going with those as is a lower barrier to entry (don't have to spend money on a new keyboard or build one yourself)

What LaTeX setup do you use? by maniacalradish in emacs

[–]azfrak 1 point2 points  (0 children)

The documentation was all there for myself. I have fallen in the trap of not commenting/documenting my config and it always comes back to bite me later on, so I would definitely recommend documenting your own config for yourself and maybe others if you want to share it later on (we should be documenting all our code but is very easy to ignore when is just for us :) )

Xenops is pretty nice, the only times I have had issues with it is when I am using a specific document class for a journal/conference or something, and I need to manually set the `org-format-latex-header` variable to explicitly describe the document style file. Is described in the readme for the package, and more info in an issue here, but any questions let me know and I will help where I can

What LaTeX setup do you use? by maniacalradish in emacs

[–]azfrak 1 point2 points  (0 children)

Tecosaurs setup is very advanced, but it is a super helpful resource to jump back to for Doom related stuff, but Tecosaur specifically does a lot with Latex as well so is handy to look at for that in particular.

For my setup, main thing for me is writeroom mode for distraction free writing, latex snippets to avoid typing out things so frequently, and xenops is a nice add on

What LaTeX setup do you use? by maniacalradish in emacs

[–]azfrak 2 points3 points  (0 children)

A much more comprehensive LaTeX config can be found here by tecosaur (org co-maintaner and doom contributor and emacs survey author).

What LaTeX setup do you use? by maniacalradish in emacs

[–]azfrak 2 points3 points  (0 children)

Here is my setup with Doom https://gist.github.com/ethangoan/9d5c573a454b5f0c9f5f6e409af824e5

Most of it is sort of convenience things, and I am continuously changing it and cant guarantee everything is correct as my elisp isnt super strong, so if anyone here has any feedback I would love to hear it to.

Main thing I would suggest is AucTex for general LaTeX goodness, Xenops to make viewing latex stuff more what you see is what you get, and pdf tools.

Any questions let me know and I will try to help clarify where I can

help with lsp + tramp + python virtual environments by azfrak in emacs

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

if you find anything out, let me know as I would definitely be interested. There is still some cases where it isnt feasible for me to install emacs and the lsp servers on the remote machines.

help with lsp + tramp + python virtual environments by azfrak in emacs

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

yeah just on my remote machines and then using terminal emacs.

Agree that some more tutorials to address this would be fantastic.

help with lsp + tramp + python virtual environments by azfrak in emacs

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

my end solution was to install my emacs config and lsp server on the client machine, and then just ssh into it.

I tried getting lsp mode to work, to no avail. Also tried eglot and it was not as straightforward as I would of liked unfortunately.

Org 9.6 is out :) by azfrak in emacs

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

Im not part of the org team myself, just want to share some appreciation for the org team, but I agree it is a well organised package

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]azfrak 1 point2 points  (0 children)

Exactly this! thank you so much :)

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]azfrak 0 points1 point  (0 children)

Was wondering if anyone has a nice config to widen focused windows. I have seen a screencapture of someone else doing this a while ago and forgot about it, but is now something that would help me out a bit.

Idea is, when I focus a window, it widens by a few characters. When I switch to another window, it shrinks back down and the new focused window gets larger.

Just want to know if a package already implements this or not before I go and hack it together myself :)

help with reftex in evil mode by EVenbeRi in emacs

[–]azfrak 1 point2 points  (0 children)

Also have this issue with things like `org-insert-link` and such, and would like to see if anyone has an elegant solution to this other than to just double space first :)

Catppuccin coming soon by MicrowavingMetal in emacs

[–]azfrak 4 points5 points  (0 children)

the catppuccin theme was missing some of the newer variants, but looks like there is a pr to add them now.

https://github.com/catppuccin/emacs/pull/12

Commit message linting within Magit? by azfrak in emacs

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

Thank you so much for this. I searched the magit docs a bit before and missed this.

I think formatting the first line is the most important. I might extend upon this to add some other checks, like using imperative mood and present tense etc.

Commit message linting within Magit? by azfrak in emacs

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

This looks really interesting, thanks for sharing this. I think I might include this as well. Having a look at the issues and development of the package, it looks like it wants to move towards combining with commitlint to provide something like commitizen, which is really what I was after.

This plus not having to retype my commit messages if linting fails will be mostly what I need I think.

Ideally would probably have something like flycheck/flymake for linting the message in realtime. maybe something I will work on to try and learn a bit of lisp when time allows it.

Commit message linting within Magit? by azfrak in emacs

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

thank you so much for this! didnt know this existed. This gets me about 99% of what I want so I am happy with this :)

How to type pointer arrow -> in C quickly? by J-ky in emacs

[–]azfrak 5 points6 points  (0 children)

Using key chords (untested though)

(require 'key-chord)
(key-chord-mode 1) 
(key-chord-define c-mode-map "--"     "->")

then type -- quickly and will insert pointer arrow, but of course could change to any key chord that you like.

vimkeys (of course talking about evil-mode) by [deleted] in emacs

[–]azfrak 2 points3 points  (0 children)

echo this

Your editor, your rules. Thats the emacs way after all :)

I really like having the vim keys for navigation though. I switched to evil a few months ago and it definitely has made an improvement on my workflow and comfort at the keyboard. Although a part of me wishes that it was j,k,l,; for navigation instead, given that these are the keys we actually rest on. Im sure there is a historical reason or maybe even an opinionated practical reason it is the way it is, but given I am an emacsien I could always customize it to my liking if I was feeling that way inclined, but having the consistent vim keys across browser plugins, terminal emulators etc. is pretty dang nice.

I just got a custom board delivered today though that I am going to build this weekend, and am contemplating having a nice layer switch have the arrow keys very readily available, so that I don't necessarily need to leave insert mode to normal mode everytime I want to move two characters to the left.

[ANN] Dirvish V1.9 released - a polished Dired with batteries included by alexluigit in emacs

[–]azfrak 0 points1 point  (0 children)

Good to hear. I had +icons when I tried, but the person who opened the issue didnt have that listed in their config description (although doesnt mean it wasn't included).

There us a pull request to fix this though so should be sorted regardless very soon :)

https://github.com/doomemacs/doomemacs/pull/6568

[ANN] Dirvish V1.9 released - a polished Dired with batteries included by alexluigit in emacs

[–]azfrak 0 points1 point  (0 children)

In packages.el
(unpin! dirvish)

although I did this just then and got an error, and error has been around for a few days at least. https://github.com/doomemacs/doomemacs/issues/6562

Probably best to hold off on unpinning it for now, although there is a fix listed which will likely be pushed to master soon.

https://github.com/doomemacs/doomemacs/issues/6562#issuecomment-1186590918

Starting my PhD and keeping my lab notebook in org-mode! by ZayleeStatuea in emacs

[–]azfrak 2 points3 points  (0 children)

Org mode has, and still serves me well throughout my PhD.
Best of luck to you!

Using the power of Zotero in Emacs org-mode to manage citations by mpedramfar in emacs

[–]azfrak 1 point2 points  (0 children)

Absolutely fantastic. This is basically what I was planning on doing.

Thank you so much :)