Emacs tips and tricks

Forum rules
Share your brain ;)
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

I am not tinkering with my configuration much these days (what a liar), but one package that has made things simpler and better for me is this: https://github.com/oantolin/orderless

Without pulling in heavy dependencies such as Helm or Ivy, this is the perfect way to move around into my project and files. Combine it with selectrum and consult, or the built-in icomplete if you rock that hard, and you're good to go.
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

This has been really useful lately: https://github.com/bdarcus/bibtex-actions
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

https://www.manueluberti.eu/emacs/2021/ ... -vertical/

No need for external packages now, which in my opinion is always a plus.
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

2296 lines of code in my Emacs setup, 1696 if you leave blanks and comments out. (I used scc to get the totals, if you are wondering how I got them)

Long gone are the days where I was hitting 5000 and beyond and feeling like the Emacs mastermind.
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

Code: Select all

[email protected]:~/.emacs.d$ scc
───────────────────────────────────────────────────────────────────────────────
Language                 Files     Lines   Blanks  Comments     Code Complexity
───────────────────────────────────────────────────────────────────────────────
Emacs Lisp                   6      1464      339       198      927          5
Makefile                     1        50       17         8       25          0
gitignore                    1        18        2         3       13          0
───────────────────────────────────────────────────────────────────────────────
Total                        8      1532      358       209      965          5
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) $26,022
Estimated Schedule Effort (organic) 3.437531 months
Estimated People Required (organic) 0.672540
───────────────────────────────────────────────────────────────────────────────
Processed 42030 bytes, 0.042 megabytes (SI)
───────────────────────────────────────────────────────────────────────────────
Damn, this is getting expensive, but it looks like little more than half of me is enough to work on it at least.
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

I decided to stop depending on Rust tools: https://www.manueluberti.eu/emacs/2021/ ... -git-grep/

grep and git grep are enough.
User avatar
wuxmedia
Grasshopper
Posts: 6405
Joined: Wed Oct 17, 2012 11:32 am
Location: FR
Contact:

Re: Emacs tips and tricks

Unread post by wuxmedia »

^ as someone who still logs into random ubuntu boxes, niceties and special binaries are not really, for me, required learning :D

I did compile curl (for fancy DNS stuff) the other day... managed to half pooch the installed version, so there's that :D
"Seek, and Ye shall find"
"Github | Chooons | Site"
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5649
Joined: Tue Sep 03, 2013 7:05 am

Re: Emacs tips and tricks

Unread post by GekkoP »

GekkoP wrote:
Tue Sep 14, 2021 10:54 am
I decided to stop depending on Rust tools: https://www.manueluberti.eu/emacs/2021/ ... -git-grep/

grep and git grep are enough.
I actually decided that in the whole ripgrep vs ugrep debate, I prefer ugrep, so I added support for it into Emacs: https://manueluberti.eu/emacs/2022/08/07/emacs-ugrep/

[And to make a geek proud, you'll find me in the ugrep README as well.]
Post Reply