7890yuiop

joined 1 year ago
[–] [email protected] 1 points 1 year ago

The question lent itself to both earnest and humorous replies, and it duly received both, so this seems very unnecessary. If you don't think a joke is funny, down-vote it and move on.

[–] [email protected] 1 points 1 year ago (4 children)

I don't know, but it might help to check C-h l to see which sequence of mouse events Emacs is reporting in each case.

[–] [email protected] 1 points 1 year ago

How much would you pay for all-the-packages?! Don't answer yet because if you call now we'll install even more packages. That's right, packages which haven't even been written yet will be installed the moment that their first alpha version is detected on the internet! And if that wasn't enough, our first 100 callers will receive a free pair of GNU socks. Don't miss this incredible offer.

[–] [email protected] 1 points 1 year ago (1 children)

I guess you want to write a custom interprogram-paste-function which checks to see if the value is a valid filename and, if so, establishes it relative to default-directory in the current buffer.

(Sounds like freakish behaviour to me, but maybe that's just me.)

[–] [email protected] 1 points 1 year ago

I think you need to define your requirements in more detail. What if you call magit-status while using Magit? Does that change what the "previous window configuration" should be? (I suspect it does, in which case it's not going to be "the previous window configuration" that you want). If I'm correct, you should clarify exactly which window configuration you want to restore, and when (in which specific circumstances) that should be captured.

[–] [email protected] 2 points 1 year ago (1 children)

I assume you're talking about the scenario where you want to search for the contents of the kill ring (so C-s C-y for normal bindings).

That sounds like a deficiency of cua-mode to me; I think it seems reasonable for C-v to behave like C-y in that situation.

You can M-x report-emacs-bug if there isn't an existing bug report for that.

[–] [email protected] 1 points 1 year ago
(type-of (read "foo"))
symbol

(type-of (read "\"foo\""))
string

(type-of (read "42"))
integer

(type-of (read "[42]"))
vector

(type-of (read "(42)"))
cons

Etc, etc...

The lisp reader reads text and it produces lisp objects of various types (which might later be evaluated as code).

[–] [email protected] 1 points 1 year ago

https://github.com/abo-abo/avy#avy-goto-char-timer is excellent for jumping to any text you can see on screen.

isearch and occur are excellent for jumping to specified text anywhere in the buffer.

imenu and xref-find-* are excellent for jumping to specific definitions in the buffer.

[–] [email protected] 1 points 1 year ago

Or did you install Emacs on the server you SSH'd into?

That one, I believe. Eliminating Tramp from the equation is an easy and effective way to avoid Tramp-based overheads!

Unless your network connection is very slow or otherwise issue-prone, in which case ssh may not be responsive -- at which point Tramp offers significant advantages by only occasionally requiring network activity.

[–] [email protected] 2 points 1 year ago (1 children)

I use sticky modifier keys at the OS level. No need for any Emacs config, and I get the benefit in every program.

[–] [email protected] 1 points 1 year ago

I'm not sure what that means, but forward-sexp, backward-sexp, and backward-up-list are good for navigating across and within balanced expressions.

[–] [email protected] 2 points 1 year ago (2 children)

FYI on GUI frames the indicators appear in the fringe, and can be configured like so:

(push '(truncation nil nil) ;; no truncation indicators
      ;; '(truncation nil right-arrow) ;; right indicator only
      ;; '(truncation left-arrow nil) ;; left indicator only
      ;; '(truncation left-arrow right-arrow) ;; default
      fringe-indicator-alist)))

/u/AkibAzmain has your solution for terminal frames.

For more info:

  • C-h i g (emacs)Line Truncation
  • C-h i g (elisp)Truncation
  • C-h i g (elisp)Display Tables
view more: ‹ prev next ›