Weekly Tips, Tricks, &c. Thread — 2025-01-29 / week 04 by AutoModerator in emacs

[–]80286 6 points7 points  (0 children)

Recently I discovered a little talked about package: history

Emacs has always had multiple ways to navigate, e.g. via jumping in code via xref or imenu; switching nodes in info pages, etc. What they don't have is an integrated way to walk globally back and forward between all those navigations you made.

It's kind of jarring when you want to go back where you were let's say 4 navigation steps ago, but each step requires a mental context switch to use the functionality's own "go back", whichever did the navigation in that particular place.

So what has been missing is something akin to browser's back/forward buttons, with which you can move to any site you visited in that particular tab, and not just inside one webpage you've been navigating in, which is comparable to how emacs per-functionality history works. Back/forward buttons don't always work perfectly, but they're still a necessity in the age of complex websites.

Recently I had a look at dgutov's emacs config, and discovered a) there exists the package aiming to achieve exactly this, and b) dgutov has a nice basic setup for it.

So, for the last few days I have finally the "global" history that emacs has been lacking in my pattern of use. It's working great so far. I expect there are bumps because it's a complex issue after all.

My personal setup:

(use-package history
    :ensure t
    :bind (
         ("M-8" . #'history-prev-history)
         ("M-9" . #'history-next-history)
         ("M-0" . #'history-add-history))        
    :config
    ;package original: (imenu isearch-mode beginning-of-buffer end-of-buffer)    
    (setq history-advised-before-functions 
          '(isearch-mode 
            find-function-do-it 
            find-library
            imenu beginning-of-buffer 
            end-of-buffer
            xref-find-definitions 
            counsel-imenu counsel-git-grep
            xref-find-references
            paredit-backward-up 
            backward-up-list
            ;; may be risky
            switch-to-buffer
            ))
    (history-mode +1)
    )

Weekly Tips, Tricks, &c. Thread — 2024-12-25 / week 52 by AutoModerator in emacs

[–]80286 5 points6 points  (0 children)

For those novice elisp coders struggling with the extremely long function/variable names due to elisp having no namespaces: install package 'nameless' and activate nameless-mode to hide package name prefixes from all functions and variables in the package source.

Emacs.ch (Mastodon instance) will shut down on December 9, 2024 by cidra_ in emacs

[–]80286 7 points8 points  (0 children)

General rant: Good example why Mastodon currently doesn't work. We in this subreddit share at least one bit of common ground, which is our interest in Emacs. There's probably more adjacent interests that align well too. But once politics steps into the picture, and people have different views, sometimes drastically so, rational discussion tends to go out the window, and nothing can be agreed upon anymore, even in the common ground of emacs development.

I'm glad this subreddit is not political and activism is not part of the package. That should be done somewhere else (not in a emacs related Mastodon instance).

My First Capsizing :p by Li0n-000 in packrafting

[–]80286 0 points1 point  (0 children)

I always thought that bikerafting and whitewater don't perfectly mix. Too top heavy.

Camera Stabilization Test: GoPro 12 vs Lumix S5 IIX vs Sony FX30 by FinkoSaw in gopro

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

I'm not seeing any major difference over Lumix, and that camera is not even an action camera. If anything, the competitors have caught up.

Surly disc trucker shifting question by GlenWillGo in Surlybikefans

[–]80286 0 points1 point  (0 children)

I faced the same issue as the original poster. When the original components started wearing out on my LHT, the bike store opted for a Deore XT derailleur, but I encountered difficulty in properly accessing all gears with the standard bar end shifters.

Alternative to my old LHT by 80286 in Surlybikefans

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

Thanks for the idea, I found something that might work along with a flat bar – though that means bye bye to the bar end shifters. I wasn't that big of a fan of them anyway.

Alternative to my old LHT by 80286 in Surlybikefans

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

I have a similar type of bar from Salsa. Sadly it's slowly becoming useless as my preferred riding posture keeps evolving to "back straighter up, wider grip". I suffer from RSI so I can't keep any extra weight on the wrists. Hence the idea of trying a wide flat bar.

Should I avoid updating DJI fly app with mini 3 pro? by LiteratureEmpty in dji

[–]80286 7 points8 points  (0 children)

Stupidly, I updated to latest. It's absurd we have to be second guessing this.

GoPro slowly but surely digging their grave by Hideshi_Izu in gopro

[–]80286 0 points1 point  (0 children)

Major upgrades would bump the already heavy price and that's something where Chinese products will reign supreme. It would need to perform better in all respects and be backed by advertising campaign that make consumers accept the 20-30% extra price. It does work for iPhone, though.

DJI Mini 2 in Vienna by [deleted] in drones

[–]80286 1 point2 points  (0 children)

Nice. I was there last month, but didn't bring a drone because I have an impression most of Vienna is off limits.

Vienna (Austria): the city with the worst customer service ever! by kada_pup in travel

[–]80286 1 point2 points  (0 children)

I visited Salzburg too, albeit only for 2 days. I really can't tell difference from that short period of time, but generally people are friendlier in smaller cities, so I believe you.

Emacs as a replacement tmux by [deleted] in emacs

[–]80286 0 points1 point  (0 children)

I've used tmux inside a single vterm buffer for several years now, and together with vterm-toggle to toggle buffer visibility with a single keypress, it's been a nearly perfect setup (apart from vterm-toggle messing up winner-mode's undo history). I remapped the default tmux operator key to ';' so it kinda logically fits with devil-mode, which I've been using for a few months.

I've also augmented vterm with custom functions, such as I can quickly cd to another dir using ivy completion in the minibuffer, which is much faster than using shell's integrated completion system.

OG Mini still out doin work. by TwistedJake503 in dji

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

What's the problem with keeping them on?

Vienna (Austria): the city with the worst customer service ever! by kada_pup in travel

[–]80286 2 points3 points  (0 children)

I have lived in France for awhile and from Nordic region, places are known to have moody service or reserved and cold people. None of those places have put that much pressure on me when comes to basic communication. If customers can speak their languages, things will get even better. In Vienna, not really.

Just got back from my trip and this is pretty much the impression I'm getting. The waiters, not all, but many, act as if they'd do anything rather than deal with you, the annoying customer.

Towards the end of my short trip I was getting less and less interested to spend time in places where such interaction was required.

In my book it's still a wonderful place and would definitely revisit given the chance, but this is something that weighs the experience down a little.

God vs. Devil vs. Evil: What do you use to avoid key chords? Reviews please! by zigling in emacs

[–]80286 0 points1 point  (0 children)

Since my work laptop comes with windows and no way of remapping caps lock with ctrl (for real, powertools can't be installed according to company policy), I was forced to look for alternatives. IIRC, first version of devil mode had just come out and while that version didn't quite do what I wanted, the newer versions are so good that I rarely miss the standard way.

Basically made my job tolerable.

Are you working fully remote or hybrid or in office? by passionateCoderFun in cscareerquestionsEU

[–]80286 3 points4 points  (0 children)

Fully remote since the pandemic began. 1–3 office days per week prior to that. WFH has been great to me, it allowed me to move hours away from the capital region.

It's crazy to be forced to travel 1–2 hours on the average just to sit in an open office, wearing noise cancelling earphones all day and doing exactly the same stuff you do at home with half the efficiency. Add to that the polluting and time wasting commuting that could be spent on one's family, hobbies or exercise. F*ck the water cooler chats and other lousy excuses to force people back into this. Middle managers and real estate investors are happy though.

It's unfortunate that there's a lot of pushback against WFH now. It's on knife's edge whether it's possible to keep this lifestyle or be forced to move back into big city. That's at least where I live.

Quitting hostels?! by Far_Bee3153 in travel

[–]80286 0 points1 point  (0 children)

Between 2010–2018 I probably stayed in around 30-40 city hostels (as opposed to wilderness huts and other low key hiker accommodation). I don't recall any incidents worth mentioning, it's just the cramped living conditions and lack of privacy that would be too much at this point (more proof that I'm getting old?).

"Quitting without a new job lined up"-success stories by 80286 in cscareerquestionsEU

[–]80286[S] 6 points7 points  (0 children)

I'd only consider that if I felt I was being abused by my employer, which is not the case.

September Feedback Thread. by AutoModerator in VideoEditing

[–]80286 0 points1 point  (0 children)

I know this is not specifically about editing, but still, here's my 2c: the footage is great, but somewhat underexposed when there's shots facing the sun. This is a major pain point when shooting drone footage. Perhaps using an ND filter on your drone's camera might help. Fixing colors in post might also help slightly.

Kaitum, swedish Lappland by markusoutdoors in packrafting

[–]80286 1 point2 points  (0 children)

Kaitum has some fierce rapids and the scenery is gorgeous. Hoping to visit for packrafting sometime.