News for hackers. Stuff that matters.
Re:My Emacs eye candy by keyle on Tuesday April 18, 2023 @11:06PM (#35623799)
I want to switch to one of those Emacs candy looking setup, but it always ends up being a lot less fun once you have it installed and nothing works as you expects, the whole thing looks like grand father software and the UX is beyond bad.

Sure, if you put up with the pain of setting it all up, eventually, you have something that works and that only you can use.

Re:My Emacs eye candy by all2 on Tuesday April 18, 2023 @11:23PM (#35623911)
Spacemacs has decent defaults, is easily extendable, and looks pretty good too.
Re:My Emacs eye candy by jcadam on Wednesday April 19, 2023 @12:40AM (#35624297)
Yea, I used to maintain a fairly complicated emacs config that I was never quite happy with. Nowadays, I just go with spacemacs. Tired of messing with stuff :)
Re:My Emacs eye candy by usr1106 on Wednesday April 19, 2023 @02:06AM (#35624779)
Similar experience. Not limited to emacs, I used to spend a lot of time to configure my desktop. Nowadays I go with stock XFCE on machines I use occasionally or shared with others and i3 on my main machine. No configurations. In emacs profile I have very few settings to get the indentation required by company style and avoid trailing whitespace / missing newline at the end. That's all.
Re:My Emacs eye candy by all2 on Friday April 21, 2023 @04:39PM (#35659754)
Your setup sounds exactly like mine. No-config i3 is nice. You might take a look at Regolith Linux, but that's unfortunately built on top of Ubuntu. I run Arch, so this might be useful at some point [0]. I might give it a go on my work laptop.

[0] https://aur.archlinux.org/packages/regolith-full

Re:My Emacs eye candy by imiric on Wednesday April 19, 2023 @02:55AM (#35625120)
I went the opposite way. Used Spacemacs to introduce me to Emacs, and then got rid of it once I got the hang of things, and noticed all the extra packages I don't need that were just impacting (the already poor) Emacs performance.

A few years later, I'm still using my config and wouldn't go back. It's what allows me to make Emacs _mine_, after all. It requires a minimal amount of maintenance, mostly whenever I decide to upgrade the packages.

Re:My Emacs eye candy by dan-robertson on Wednesday April 19, 2023 @05:25AM (#35626124)
Is base Emacs performance actually poor? I’ve generally found it to be pretty quick and it performs well in environments that other programs totally fail in, eg in a terminal or over X forwarding.
Re:My Emacs eye candy by drbaba on Wednesday April 19, 2023 @08:12AM (#35627168)
Well, it depends on your system. In my experience, Emacs without native-comp is way snappier on Linux than on Mac and Windows -- and getting native-comp working is also much easier on Linux, which has a big impact. Large numbers of pixels (high-DPI / Retina displays) can increase stuttering and flickering in the GUI version, in which case performance can improve by using `emacs -nw` in a GPU-accelerated terminal (Kitty/Alacritty), or maybe by switching to a different GUI frontend (e.g. the NS Port vs. Mac Port on MacOS, or the X11 vs. PGTK version on Linux).
Re:My Emacs eye candy by ngai_aku on Wednesday April 19, 2023 @12:20AM (#35624202)
Is that a criticism of “candy looking setups” or emacs more generally? Your comment feels needlessly derisive.

> eventually, you have something that works and that only you can use

This criticism doesn’t make a lot of sense to me. You do a lot of keyboard sharing? Who else needs to use Your editor?

Re:My Emacs eye candy by BeetleB on Wednesday April 19, 2023 @12:32AM (#35624262)
People generally don't pick Emacs to get eye candy. If that's why you went for it, it will be painful ride.
Re:My Emacs eye candy by Barrin92 on Wednesday April 19, 2023 @12:37AM (#35624281)
You can try Doom Emacs if you want a solid starting point. (https://github.com/doomemacs/doomemacs). Emacs is so idiosyncratic compared to a lot of modern stuff people are used to, starting with a base like this may be a little easier than trying to do it from the ground up.
Re:My Emacs eye candy by lenkite on Wednesday April 19, 2023 @01:58AM (#35624730)
Whats the difference between Doom emacs and spacemacs ?
Re:My Emacs eye candy by lordgrenville on Wednesday April 19, 2023 @02:59AM (#35625145)
Much faster startup time, for one.
Re:My Emacs eye candy by vvillena on Wednesday April 19, 2023 @05:32AM (#35626164)
Both are very opinionated frameworks. Basically, they establish a convention for dealing with packages and custom config code, and build from there.

With Spacemacs, the expected default is to use Vim-style editing, with the addition of the Space key (hence the name) to access all of Emacs functionality. It's quite user-friendly and very discoverable. And it's still Emacs, so it offers a lot of customization.

Doom Emacs is a more focused approach, it has a clean set of defaults, and the ability to load lots of optional features. One key difference with Spacemacs is the use of an extra CLI utility to manage things such as package installation and config upgrades. Doom also disables customize-mode, which leads to cleaner configs at the cost of some discoverability.

Personally, I've been using Spacemacs for years, they key shortcuts just make sense to me, and it includes everything I want. I also love the default theme, the documentation is helpful, and the main drawback, long startup times, is minimized because I never exit Emacs.

Re:My Emacs eye candy by eldenring on Wednesday April 19, 2023 @09:51AM (#35628115)
Doom is the same. It uses evil mode by default and SPC as the default leader key.

Also in my experience it is a lot faster.

Re:My Emacs eye candy by vvillena on Wednesday April 19, 2023 @10:25AM (#35628578)
Let me clarify that Doom Emacs is not "same as Spacemacs, but faster". This is probably one of the biggest misunderstandings about these two Emacs frameworks.

You can end up with a similar feature set using any of the two, and yes, Doom Emacs will probably be a bit faster, but they are not entirely equal. The user experience is different, one easy example is that while using SPC as a leader key is a feature in both, the keymaps are quite different.

My recommendation would be to try them both: they are easy to install, and uninstallation is as simple as removing the Emacs config in your user directory.

Re:My Emacs eye candy by femiagbabiaka on Wednesday April 19, 2023 @12:55AM (#35624373)
The extensibility and customizability of Emacs typically means that bad UX is user error. There is a barrier to entry, but if you don't want to go past that, it's no big deal. I'm not sure that's the editor's fault though.
Re:My Emacs eye candy by illiarian on Wednesday April 19, 2023 @01:48AM (#35624678)
If you need to overcome a barrier and extend/customize to reach a good UX, that is the program's fault (applies to any program, not just emacs)
Re:My Emacs eye candy by usr1106 on Wednesday April 19, 2023 @02:12AM (#35624817)
I don't think good UX is a universal concept. People have different preferences. On my desktop I don't want click to type. But still many seem to prefer just that. I want a trackpoint, many are happy with touchpads.

(Of course some implementations can be classified as just bad UX...)

Re:My Emacs eye candy by illiarian on Wednesday April 19, 2023 @02:27AM (#35624906)
> I don't think good UX is a universal concept.

There are some more-or-less objective criteria we can apply. From "how many actions it takes to achieve something" to accessibility.

Re:My Emacs eye candy by nequo on Wednesday April 19, 2023 @02:45AM (#35625031)
Emacs is not terrible for accessibility. This is Parham Doustdar talking about how he uses Emacs as a blind developer:

https://emacsconf.org/2019/talks/08/

Re:My Emacs eye candy by noctuid on Wednesday April 19, 2023 @09:15AM (#35627741)
> how many actions it takes to achieve something

This is not really objective because you also have to take into consideration how intuitive/simple the UX is. Given 100 related actions, clicking through a logically grouped nested menu or multiple pages to do something is going to require more steps but be something anyone can do. Memorizing and using keyboard shortcuts for all those actions will be more efficient, but isn't something someone could immediately do. There is of course an in-between where you can have menus to display available keyboard shortcuts, but some (most?) people will still prefer a GUI/mouse-based approach. There is no one-size-fits-all approach.

Re:My Emacs eye candy by llanowarelves on Wednesday April 19, 2023 @02:44AM (#35625021)
Where is Xah Lee when you need him? His critiques of Emacs on this are spot on, imo. Helps that he backs up his claims (scattered around his site) with data and usability research.

"If emacs just use standard keys for open close save, cut copy paste undo, users will double in 1 year."[0]

[0]Emacs Modernization: http://xahlee.info/emacs/emacs/emacs_modernization.html

Re:My Emacs eye candy by distcs on Wednesday April 19, 2023 @06:22AM (#35626429)
Good UX is very subjective though. I mean for me the Emacs looks by default and how it allows me to customize it the way I see fit is good UX. Others don't see it as good UX.

Can I customize the status bar to include my contextual information with a single line of code in VS Code? Perhaps not. So VS Code has bad UX for my needs. But many consider VS Code to have good UX.

Re:My Emacs eye candy by govolckurself on Wednesday April 19, 2023 @07:45AM (#35626968)
Are our expectations so low now that developers can't be expected to put in a little effort to learn a text editor? Look, I promise I'm not the smartest guy, but I ground out a few weeks of memorizing key bindings like ten years ago, and that was basically it. M-x apropos and Google fill in the rest of the gaps. I truly don't understand why stuff like this seems to be so hard for people. My hunch is that they just don't want to put in the effort. Which is fine! But please just be honest about it.
Re:My Emacs eye candy by noctuid on Wednesday April 19, 2023 @09:05AM (#35627645)
Customizability is Emacs' selling point. A higher level of extensibility necessary means a higher learning curve. I'd call it a learning curve rather than "barrier": it's certainly not difficult to make Emacs look good. Most people don't care how Emacs behaves OOTB because they want to customize every aspect of it. You might say it should look or behave better by default, but I'd rather the base stay consistent and simple (it fits the use case better). There are plenty of starter kits/distros that look good OOTB for people who want a better default experience.
Re:My Emacs eye candy by littlelady on Wednesday April 19, 2023 @02:48AM (#35625060)
I think it's worth it, if you are a tinkerer and if you look at that kind of software as a "Personal Development Environment" a phrase I first heard in this video[1]. So, yeah the focus is on creating software that is tailored to your requirements. If your requirements are that someone else has to be able to use it, because you do a lot of pair programming, then that's something to consider.

I've tried a lot of editors over the years... Currently I'm using neovim. It's been pretty nice--after some major adjustments. I like altering my configs and changing what's not working for me. Would I use it exclusively? No, but it's a nice tool to have in my toolbox. And with some effort it also can look very pretty.

[1]: https://www.youtube.com/watch?v=QMVIJhC9Veg&embeds_euri=http...