[ mona / prog / sol ]


Everything Emacsen

1 2020-04-18 11:53

Let's talk about Emacsen: GNU Emacs, Guile Emacs, edwim, mg, etc. Do you use them? Do you like them? Do you extend them? Any tips to share? Any questions to ask?

2 2020-04-19 03:25

Guile Emacs

Stalled. Immense sadness.

I don't like how Emacs recenter the screen by default. I can hit C-l myself. It's especially annoying when I use ERC or Telega, I'm used to having the line where I input text at the bottom of the screen. My old ERC settings don't work anymore on newer version of Emacs so I have these rather haxed lines in my init:

(setq scroll-margin 3
      scroll-conservatively 101
      scroll-up-aggressively 0.01
      scroll-down-aggressively 0.01
      scroll-preserve-screen-position t
      auto-window-vscroll nil)

One of these days, I should set them up only for the modes where I can't do without them.

I don't fire up Gnus as much as I used to, because dead newsgroups are depressing and I don't read my mail with Gnus.

I have barely used mg, I prefer zile in the rare situations where I need a more lightweight editor.

3 2020-04-19 04:50

Deldo - Vibration Control and Teledildonics Mode for Emacs

4 2020-04-20 11:35


5 2020-04-21 04:16

He's the chief GNUisance and at this moment I feel so good I want to go outside and hug people.
I don't have my name on the wall of shame. My life has been good to me.

6 2020-05-19 12:54

State of Emacs Lisp on Guile

7 2020-05-20 07:55

The benchmark should only run the tests that have the same result in both implementations, otherwise you are measuring very different executions.

8 2020-05-21 00:36

sbbs.el is pretty nifty but has anyone attempted to write a SchemeBBS mode for Edwin? I figure it could be modelled after imail mode.

9 2020-07-02 17:01

Anyone have any idea how to make Emacs highlight unbound and shadowing Scheme variables? Locating errors involving these variables seems to take up a reasonable percentage of my debugging cycle, and it would be very helpful to discover them up front.

10 2020-07-03 08:06

I don't know of anything like that, you'd probably have to integrate it into something like Geiser or have a collection of bound symbols (depending on the imports) of whatever Scheme implementation you use, so that these built-in variables aren't marked as unknown.

11 2020-07-04 15:52 *

This is sort of what I feared. I'll put it off for now and consider looking into it again when I have more time.

12 2020-07-10 19:11

I thought this was an interesting challenge and gave it a go. It was surprisingly easy to achieve using Guile's compiler infrastructure and flymake. If you actually end up using it, you might want to add every other already existing analysis to the list. It should be easy to figure out how to do it.

https://paste.textboard.org/e6c6dca0 -- guile-shadow.scm
https://paste.textboard.org/97a74add -- guile-shadow.el

For the Scheme code you will need a recent Guile, I think 3.0.3 should work but I used 3.0.4 from Guix. For the Emacs part you might want to modify at least the variables. I am not very confident in my elisp, it probably needs some improvement.

Happy hacking!

13 2020-07-11 13:02

This is wild, I had no idea that you could just poke around at guile's internal representation of a program. Thanks so much for this helpful tool!

14 2020-07-19 20:18

Why are info manuals not more widespread? They are by far the most convenient documentation to browse.

15 2020-07-21 18:02

The main reason is probably the issue of embedding images/tables. Consider




But the again, the 'i' command super-useful.

16 2020-07-21 21:10


The format supports both tables and images, although I have to admit that I've never seen either in use:

17 2020-09-29 17:58

port of emacs to rust

18 2020-09-29 20:22

This year will have a virtual emacs conference again: https://emacsconf.org/2020/

Anyone planning to present? I wouldn't mind watching a talk about sbbs.el ;-)

19 2020-10-01 11:44

Does Zile have Unicode support yet?
Is Guile Emacs suitable for daily use?

20 2020-10-01 11:50

Maybe Texinfo syntax alienates many potential users. Also making an HTML or PDF documentation will be easier to most using what they already know. Man pages are just necessary though now there're tools [1] to generate them fairly simple.

[1]: e.g. https://git.sr.ht/~sircmpwn/scdoc

21 2020-10-01 11:51

It appears to have lost momentum. To say the truth I ain't a fan of RiiR projects for no particular reason.

22 2020-10-02 14:40


23 2020-10-08 00:38

No ersatz Emacs supports Unicode.

24 2020-10-08 07:48

This editor: https://github.com/nsf/godit is pretty close to Emacs, and looks like it supports unicode.

25 2020-10-15 19:45

crdt.el is a real-time collaborative editing environment for Emacs using Conflict-free Replicated Data Types.


Sounds amazing, I wish I had any friends to try it with.

26 2020-10-15 20:09

Start two local Emacs sessions.

27 2020-10-15 21:18

Is anyone aware of attempts to implement CL's reader macros (or a subset thereof) in elisp?

28 2020-10-19 16:12

There's this: https://emacssurvey.org/

It's open until 30.11.2020, consider participating, so that the VSCode and Vim users don't overshadow everything.

29 2020-10-20 13:01

Does anyone here use GCC-Emacs? I heard it was actually quite usable with no real issues, and it seems that it will be added to my distribution within the month.

30 2020-10-21 09:51

I tried it a week ago, and it's basically as stable as master, but probably not more stable.

31 2020-10-21 16:36

That's honestly not too bad, but it does temper my enthusiasm slightly. At least baring any obvious bugs in the beginning I'll try to keep it in the back of my head that any errors I'm debugging (inevitable bugs in personal functions and configuration) could be due to working on top of an unstable branch. Thanks for sharing.

32 2020-10-25 12:48

I have been using it with Doom Emacs for Go development and have had no issues so far.

33 2020-10-25 20:00

What have you been using for debugging?

34 2020-10-25 22:08 *

That's good to hear as well, I think I'm just slightly overly cautious and excited because I use Emacs as my OS with EXWM and what not, and don't restart for weeks on end. Bugs which don't appear significant in some contexts are very significant to me, and performance is likewise something I'm very interested in. Although a completely asynchronous Emacs would be of even more interest to me, I am quite interested in this project.

35 2020-10-28 00:30 *

The eccentricities of my setup meant that this Emacs GCC didn't work out.

36 2020-10-28 13:20 *

I think I'm also going to enter a bit of an online hermitage, I'll see you guys at some later date.

37 2020-10-30 07:39

Can I put this thread as an answer to "What Emacs community forums have you visited in the past year?"

38 2020-10-31 08:39 *


39 2020-11-13 11:57

Man pages are the standard. What more would you ever want than what man pages offer?

40 2020-11-13 15:48

More than one page, real images and working cross references.

41 2020-11-13 17:23

And let's not forget an index.

42 2020-11-27 07:56

This is starting tomorrow.

43 2020-11-28 10:13

This is starting today.

44 2020-11-30 21:29


45 2020-12-01 04:12


46 2020-12-01 09:24

It's over now.

47 2020-12-01 22:55

what the fuck is an emacsen

48 2020-12-02 05:55


49 2020-12-09 19:17

Emacs Survey 2020 results: https://emacssurvey.org/2020/

It's pretty interesting that so many emacs users used to be vim users. I wonder if the reverse is also true.

50 2020-12-09 21:08

It's nice to see how many people use either vanilla emacs, or a completely custom configuration, this was one of the main things I was most worried about. Apparently icomplete isn't popular at all; maybe that will change if we can get better performance in elisp.

51 2020-12-16 18:22


The median evil-modalist is seven emacs-years younger than the median traditionalist.

Hopefully they will grow out of it!

52 2020-12-19 08:09 *

For all of this war, it's depressing noone brings up the blaring problems with modern qed and ecce and that emacsen spawn don't know what ecce is, nor do vi users know what qed is.

53 2020-12-19 23:53 *

Two tips for those of you considering running GNU Emacs on OpenBSD, other than the usual stuff like adding your user to staff.

The first is that generally speaking you want to start large applications in separate processes using for example call-process with nil passed as the argument to the destination parameter, or alternatively to just start applications outside of Emacs, using dmenu or similar. This resolved many of the crashes I was having which seemed to do either with having subprocesses consuming too much memory (running PDF readers, video player, and www browser as subprocesses) for OpenBSD's relatively aggressive process limits, or simply because these subprocesses had some other issue such as a memory leak or they were violating an unveil or pledge rule.

The second is courtesy of the following blog since I couldn't manage to find this out myself: https://omecha.info/blog/org-capture-freezes-emacs.html Apparently there is some sort of issue with OpenBSD freezing when trying to read the SECONDARY clipboard with Latin1 encoding. This clipboard is read by org-capture, and might be used in some other modes as well, along with anything derived from org-capture. No idea why this would fix things but it does:

(setq x-selection-timeout 10)
54 2020-12-22 17:56

Is there any Windows user here? Do you have any tips to make it better on Windows? Jesus, it's slow!

55 2020-12-22 18:31

It ran perfectly fine on my shitty Windows tablet last time I checked

56 2020-12-22 21:39

It does run perfectly, but it's noticeable slower than running it on Debian. I guess we can't have both.

57 2020-12-22 21:59

I don't run Windows, but what specifically is slow for you? There are some things which are slow on all platforms like icomplete, doc-view, and very long lines; these are typically replaced by something like Selectrum, pdf-tools, and RIP respectively by users. Startup can also be slow if you have a large config, the way to fix this is to use with-eval-after-load around packages, or the use-package package and to temporary set the following during startup:

(setq file-name-handler-alist nil
      gc-cons-threshold most-positive-fixnum)

Of course using emacs -q to find actual errors in your configuration could also be useful.

58 2020-12-23 10:38

what does emacs have that Featherpad doesn't?
Specific unique functionality, not a "hotkey to search&replace x by y".
Something that Featherpad can't do.

59 2020-12-23 10:47

the "hotkey to search&replace x by y", as you so eloquently put it, is what makes emacs better to the people who use it. featherpad is pretty much just a regular editor not much different (if at all) from mousepad, gedit, etc
also emacs has tetris, a web browser and can view slideshows and non-plaintext documents, which i guess is what you meant.

60 2020-12-23 13:03

Emacs is programmable. The other day I needed to proofread some text that was badly OCR-ed from a PDF file. In a few minutes I threw together some convenience functions that narrowed the text to a single page and showed the original PDF page next to it. Then with a single hotkey I could "turn a page" both in the text and the PDF. That made my job a lot less frustrating.

61 2020-12-24 09:51

I guess what is interesting is that "search/replace" isn't built in to Emacs, but instead is programmed in Elisp. The same with undo, all the variations of search (regex search, word search, case-insenstive-search), and so on. It serves as an example for what potential the core has, and how it can be adapted.

62 2020-12-28 11:59

I always thought people just threw their themes together by choosing random colours but apparently it's closer to engineering than I thought.

63 2020-12-29 20:23 *

I read this an eternity ago but for some reason did not modify my config, I ended up reinventing it today and will never go back: https://with-emacs.com/posts/tips/quit-current-context/ It's insane that this isn't the default behavior honestly.

64 2020-12-29 22:18

Even after doing this I have an issue where if I C-g in the minibuffer while icomplete is searching for something I simply get the [Quit] literal showing up in the prompt. If I bind my function to a different key such as C-] or M-n this does not occur. Any ideas how to make icomplete treat C-g the same way it does these other keys?

65 2020-12-31 19:29

Is anyone aware of a way to display arbitrary fractions in Emacs. Something like how the raise display property allows you to display arbitrary subscripts and superscripts? Unicode fractions don't cover many cases at all, just literal numerals, and I'm not interested in rendering images.

66 2021-01-01 15:02

They certainly put a lot of thought into things that make absolutely no difference.

Nothing as well integrated as display properties, but texfrag-mode can render latex equations inline.

67 2021-01-01 17:09 *

textfrag seems to do the image preview thing, it's kinda lame that the render seems to lack the expressiveness to display fractions, and non-linear text generally.



do not edit these