317 comments

  • lr0 3 days ago

    Almost all the comments here are about things that really possible to do in current Emacs i.e. 'feature-requests' and not "fundamental pitfalls of this foundational application". For me, it would be just:

    - Redesigned with concurrency in mind.

    - Common Lisp, Scheme, or anything else other than Elisp. [Just the same way Neovim adapted Lua instead of VimScript]

    - More sane defaults for new users.

    • az09mugen 3 days ago

      Someone created lem [0] which is basically an Emacs in Common Lisp. I don't know for concurrency but I hope it is designed to do so. Also there isn't org-mode.

      [0] : https://github.com/lem-project/lem

      • c256 2 days ago

        There have been several recreations of Emacs in Common Lisp over the years, including Hemlock, CEDAR, and Climacs. They never catch on, because they’re not compatible enough with the existing base of emacs lisp software. This also applies to Scheme, although it did get closer to compatibility once or twice. This is also closely tied to why emacs hasn’t been made much more parallelized - fundamentally, the design of emacs is too close to “a giant ball of global state”, mirroring an early Lisp Machine. It’s a high hill to design around, and it will violate basic assumptions made by most medium-plus interesting elisp code. Do not let this dissuade you from trying! It would be a great if difficult accomplishment!

        • vindarel 2 days ago

          Lem is actually useful though! And not a recreation of Emacs in CL, it's its own thing, unlike CEDAR (which wasn't completed).

      • mark_l_watson 3 days ago

        I enjoy using Lem sometimes, but mostly use Emacs. Lem is a very cool idea, and with Roswell it is easy to install and manage.

        All that said, it seems like Emacs has been improving rapidly the last few years: native compilation of Elisp, LSP support, good integrations with LLMs.

      • anthk 3 days ago

        More than org-mode, it needs a Texinfo viewer. Once you can access SBCL's documentation (and internal docs), now you have an almost complete Common Lisp editor with the basic features from Emacs.

    • throwaway17_17 3 days ago

      Hard agree that these are true ‘fundamental pitfalls’ of Emacs’ design. However I may go further on your third point. I would like to see a dedicated new user/learner mode that in addition to saner defaults would be pretty fully configured and pre-loaded with the most common extensions/plug-ins/etc. This could then lead to development of dedicated documentation/tutorials that assist the new user in becoming proficient in the common style/habits of Emacs usage.

      This could provide a much simpler full featured ‘base’ state for the app, that can then be customized from that point or can be stripped back by removing the more common add-ons and customized from the ground up.

      It would in some ways necessitate a strongly opinionated set of defaults and an additional focus on documentation, but I think in the long run the app would benefit from higher retention.

      • appplication 3 days ago

        I’m on the strong opinion that most highly configurable software should come with strongly opinionated defaults. “It’s infinitely configurable so you can do anything you want” is just… so annoying. You could implement an LLM using punchcards if you were mad enough. The thing that makes a tool effective is the fact that it constrains and specializes.

      • randmeerkat 3 days ago

        > I would like to see a dedicated new user/learner mode

        “To run the tutorial, start Emacs and type C-h t, that is, Ctrl-h followed by t.”[1]

        [1] https://www.gnu.org/software/emacs/tour/

        • anthk 3 days ago

          That can be just put in the startup screen.

          • umanwizard 3 days ago

            There is already a link to the tutorial on the startup screen.

      • jolmg 3 days ago

        > in addition to saner defaults

        Isn't that cua-mode?

        https://www.gnu.org/software/emacs/manual/html_node/emacs/CU...

        > would be pretty fully configured and pre-loaded with the most common extensions/plug-ins/etc.

        Doesn't it already do this? org-mode comes pre-installed for instance.

        • orra 3 days ago

          cua-mode, yes, but the point is it's not the default.

          Similarly, recentf-mode exists but is not the default. Or has that changed?

      • anthk 3 days ago

        I'm against that. Some random user would use Org-Mode and it wouldn't need any IDE related extensions. Also, another programmer might just use Org-Babel and code in Common Lisp with org-babel and a REPL doing literary programming. Another one would use Emacs for IRC, Email and math with M-x calc and/or iMaxima and AucTex.

  • mrob 3 days ago

    I'd make cursors be positioned within the document instead of on the screen. Currently, Emacs does not support off-screen cursors. If you attempt to scroll a cursor off screen, it will move within the document to stay on screen. This behavior is contrary to all modern text editors, and there is no good workaround. I once made a serious effort to start using Emacs, but ultimately stopped because of the annoying cursor behavior. (There were other annoyances, but none so fundamental and unfixable.)

    • akira2501 3 days ago

      It (kinda) has multiple cursors per document if you split the frame and display the buffer twice. For longer source files I find myself splitting horizontally, editing in the left pane, and using the right pane for secondary movement and reference.

      I have a buffer manager that can switch the displayed buffer quickly, when I switch to a different buffer and back again, it retains it's "secondary" cursor position that is separate from the other view.

    • john-aj 2 days ago

      It is possible to emulate this in Emacs Lisp. I've created a package to that extent, see http://ankarstrom.se/~john/etc/emacs/scroll-without-point.el. (I've made a few changes to it the last couple of weeks that I have yet to upload, though.) I should probably publish it somewhere else eventually, but I've always felt it to be a bit of a hack. Still, I use it and it works well 99% of the time.

    • yoavm 3 days ago
    • mojifwisi 3 days ago

      This might be a dumb question, but how would an off-screen cursor work in a terminal? According to my understanding of the way terminal emulators/ncurses work, the cursor must be positioned somewhere in the screen, even if it isn't visible.

      • mrob 3 days ago

        ncurses lets you move the cursor to arbitrary positions, and also lets you hide it. And you can disable echo, so you can type without the cursor having any influence on what you see. This means you can treat the terminal cursor as though it's a software-rendered cursor in a GUI app and apply all the same rules. But nobody considered doing this when Emacs was first written (maybe it wasn't possible then), so the assumption that the cursor is always on screen is difficult to change.

      • umanwizard 3 days ago

        I'd be happy to break terminal mode (which I almost never use) in exchange for getting this feature.

        • knome 3 days ago

          whereas I use emacs exclusively in terminal mode, and would be rather upset to it no longer supported :)

          • umanwizard 3 days ago

            Fair enough, but a straightforward solution would be to just not allow off-screen cursors in terminal mode, and allow them in GUI mode.

    • throwaway17_17 3 days ago

      This is a really interesting case of Emacs being so old that its default (and only in this case) behavior is just unable to comprehend current computer technology and usage. I think I am correct in saying that the lack of capabilities to have horizontal scrolling of a screen was an absolute hard limit of the teletype and terminal era. It should not be difficult to add such capability, but more than the obviously connected portions of Emacs’ code could implicitly rely on the assumptions that come from the impossibility of horizontally extending text.

    • arghnoname 3 days ago

      I'll try to use the more common Windows/MacOS terms for it, but in emacs I often have the same file opened in two different panes within one window or two separate windows. I do this when I want to be looking at one part of a file while editing another.

      Markers are used to mark a different point in the file and one can pop their location to a previous mark.

      • mrob 3 days ago

        Putting cursors within the document does not preclude supporting different cursors for different windows.

    • tom_ 3 days ago

      This still annoys me slightly after nearly 20 years of using Emacs.

      In response to keypresses, it doesn't bother me too much, as I'm used to the Windows-style behaviour of PgUp/PgDn/etc. moving the caret, much as the Mac behaviour of not doing that is sometimes useful. But for mouse wheel scrolling, which I do a lot - precisely because on Windows this typically does not move the caret! - having point follow along has never felt right.

      • entropie 3 days ago

        > But for mouse wheel scrolling, which I do a lot - precisely because on Windows this typically does not move the caret! - having point follow along has never felt right.

        Iam pretty sure you can customzize that if you want.

        > scroll-preserve-screen-position is a variable defined in ‘C source code’.

        > Its value is ‘keep’ > Original value was nil

        > Controls if scroll commands move point to keep its screen position unchanged.

        > A value of nil means point does not keep its screen position except > at the scroll margin or window boundary respectively.

        > A value of t means point keeps its screen position if the scroll > command moved it vertically out of the window, e.g. when scrolling > by full screens. If point is within ‘next-screen-context-lines’ lines > from the edges of the window, point will typically not keep its screen > position when doing commands like ‘scroll-up-command’/‘scroll-down-command’ > and the like.

        • hibbelig 3 days ago

          You’re misunderstanding. In those other apps the behavior is this: you open a document. You put the cursor on line 3 column 3. You use the mouse wheel or trackpad to scroll down to line 600. You hit cursor right. The cursor is now on line 3 column 4.

          In emacs the cursor would be somewhere around line 600 instead.

          • nine_k 2 days ago

            It should be possible to save the cursor position, hide it if it moves away from view during scrolling, and restore it back on any command but scrolling, or at least at the firs cursor-movement command.

      • taeric 3 days ago

        Conversely, I curse heavily at Mac programs where I can page down or scroll for a while, only to have an arrow press jump way the heck back in the document.

    • jackcviers3 2 days ago

      Curious, why would it matter that the cursor stays where you were when paging down?

      • mrob 18 hours ago

        The exact behavior isn't hugely important (although I think off-screen cursors are a useful feature). What matters is consistency between applications. There's no realistic scenario where I do everything in Emacs, so Emacs has to behave in the same way as other applications. If not, I risk data loss or corruption because I might fail to notice the cursor ending up somewhere I didn't expect. This is especially likely to happen with a feature like off-screen cursors that I use only occasionally.

    • trealira 2 days ago

      You might know, but you can set marks to go back when you scroll off. I have to admit it's not as convenient as the cursor just behaving like that automatically, though.

  • rbc 3 days ago

    One thing about Emacs, is it's not really just an editor anymore. Comparing it to other editors kind of misses the mark. It's more like an integrated Lisp development and runtime environment. It reminds me of Smalltalk environments, say Squeak or Pharo, albeit in a very text oriented way.

    The world could probably make room for an integrated Lisp development environment that makes GUI programming more of a first class citizen. Maybe something like Medley Interlisp?

    • anthk 3 days ago

      Emacs runs on terminals too. If you want GUI's, you can choose Common Lisp with Lem and MCCLIM, or that newish web oriented GUI with a similar environment.

      • iLemming 2 days ago

        And so? Emacs GUI already does tons of things that don't work in terminal:

        - It can render different fontsets

        - PDFs

        - SVG and images

        - Emojis and file icons

        - Tooltips

        - Drag&Drop and better mouse support (scrolling, selection, etc.)

        I think it would be great to have a better GUI layer and native web-browser integration. Emacs' evolution doesn't have to be constrained by terminal limitations, and so far it doesn't seem that it was.

        • nine_k 2 days ago

          With xterm (Kitty, WezTerm, Alacritty) you can have good mouse support, hence you can have tooltip-like popups (AFAICT eldoc or lsp-ui-doc do it), and likely even drag and drop (never used it).

          I suspect that with sixel support, and kitty image protocol support, images could be shown, too. At least, Eat, the elisp-based terminal.emulator, manages to show sixel graphics inside Emacs.

  • musicale 3 days ago

    I don't care that much about the implementation, but I would like to see an emacs environment with:

    - instant startup

    - blazingly fast scrolling

    - minimal keypress-to-display latency

    I have written a lot of elisp (and had to deal with with buffer variables, dynamic scope, etc.), but aligning with modern scheme or lisp (if it can be kept compact and efficient) probably makes sense at this point. (Current emacs should provide backward compatibility as needed.)

    Since so many people use emacs as an IDE, I think having an official emacs co-project/subproject focusing on a standard, extensible IDE framework (perhaps for other apps as well) would make sense.

    It still seems like a pain to display graphics in emacs in various terminal apps. This should be easy, fast, and standardized.

    As others have noted, supply chain attacks against open source are rampant, so vetting and sandboxing packages seems to be more important now.

    • lysace 3 days ago

      I'm confused. On the modern devices I've recently used emacs on (including very low-powered raspberry pi devices), all of your three criteria are already true.

      What kind of HW are you running emacs on where this isn't the case?

      • musicale 3 days ago

        This is from 2015, but emacs still has higher typing latency than vim in 2024.

        https://pavelfatin.com/typing-with-pleasure/

        If you have better numbers and comparisons for emacs keypress-to-pixel latency, etc. I'd be interested.

        Note classic vi started up faster than vim.

        Device makes little to no difference: Raspberry Pi 5, MacBook Pro M1, ThinkPad P1, etc. - emacs is clunky on all of them. I like emacs and it's my daily driver. But it isn't fast.

        see also:

        "Computer latency: 1997-2017" https://danluu.com/input-lag/

        "Measuring keyboard-to-photon latency with a light sensor" https://thume.ca/2020/05/20/making-a-latency-tester/

        • znpy 3 days ago

          I have often see some fellow coworkers start up their fairly complex vim/neovim/other-vim setups and quite frankly… they ended up recreating a poor emacs implementation.

          Yeah it’s faster at starting up but it’s worse in pretty much everything else.

          Oh and they end up typing Ctrl-this Ctrl-that anyway.

          Might as well use gnu emacs.

      • arghnoname 3 days ago

        Emacs pauses are almost always due to some operation blocking in the main thread. It's pretty annoying and is mostly a consequence to a lot of things effectively being single-threaded. Stock emacs doesn't do this very often, but third party packages that might do expensive tasks often do

        • iLemming 2 days ago

          a) Build it with native-compilation flag

          b) Use https://github.com/blahgeek/emacs-lsp-booster

          c) Tweak GC vars, see: https://emacs-lsp.github.io/lsp-mode/page/performance/

          d) Use plists for deserialization (described in the previous link)

          e) Learn how to use built-in profiler and don't hesitate to launch it, sometimes simply disabling some minor-mode in specific setting is all it takes

          f) Current state of Tree-sitter in Emacs is a mixed bag - for some modes you get huge improvements, for others it's the opposite. YMMV.

        • lysace 3 days ago

          Ah. A case of "don't do that, then".

      • hollerith 3 days ago

        Receiving output from a process, as is done for example by shell mode and (I guess, but have not verified) compilation mode, is slow in Emacs because all output is run through comint-carriage-motion and ansi-color-filter-region (which does nothing but throw color information away IIRC) which are written in Elisp.

        If you don't run the output through those 2 functions, then non-printing characters remain in the output that severely undermine legibility.

        C programmers tend to develop the ability to glean information from the voluminous output of build processes as it goes whizzing by on a terminal, so they find compilation mode frustratingly slow. Or at least that is my guess as to what happens.

    • wging 3 days ago

      For instant startup I recommend daemon mode and emacsclient. Start emacs via emacs --daemon, open windows (in the terminal or otherwise) via `emacsclient` / `emacsclient -nc` (I use aliases for these).

      • stackghost 3 days ago

        The solution to "this text editor takes too long to start up" is poorly addressed by the solution to "just leave it running in the background all the time".

        • dokyun 3 days ago

          It really is not poorly addressed, as it's a reasonable solution to the issue which also brings about it's own benefits. If you have your system configured such that the Emacs server starts up when you log in, by the time you actually start Emacs it will long have already loaded completely. If you actually use your Emacs for several things throughout the day, including but not limited to reading and editing text and documents, then it is likely you will have it always running during that time with several files open, and will find it useful to be using Emacs in the same state it was in the last time you opened it.

          As an aside, having it running in the background was actually the way the original EMACS that ran on ITS was intended to be used: When you C-x C-c out of it, it does not kill the program, it simply puts it in the background, and the next time you invoke EMACS it brings it back up. This is similar in effect to hitting C-z, then using 'fg' to bring it up again, but this only really works in a terminal. The Emacs server achieves the intended effect better, especially on a graphical display.

        • iLemming 2 days ago

          It's not a "solution"; you still need to solve your undesirably slow startup, but if you're having to kill and restart Emacs multiple times a day, something is wrong with your workflow. Normally, Emacs doesn't require restart - for weeks and months in some cases.

          emacsclient is useful on its own. For example, I use it to edit just about any text, in any input box in any app, delegating the task to Emacs, or when I want to open some URL in Emacs, while browsing a web page in my browser, or to send some selected text to Emacs.

          • stackghost a day ago

            This has strong "you're holding it wrong" energy.

            • iLemming a day ago

              Well, if you see someone launching a browser, visiting website, then quitting it, and then later launching it again to visit another webpage, you'd tell them it ain't right, no?

      • perihelions 3 days ago

        I wrap my slow .emacs loads inside #'run-with-idle-timer so they run when I'm not looking, and not likely to notice.

        • andbberger 3 days ago

          what is this point of this, when would you not be using emacs?

          • perihelions 3 days ago

            Only needs a few seconds of idle time to load libraries.

      • musicale 3 days ago

        Yep, warm start is the only way to go unfortunately. But I want a fast start from cold boot like classic vi.

        • sping 2 days ago

          Though trying to run Emacs like vi is a pitfall in itself. Clunking around the terminal summoning Emacs to edit files is really not a particularly effective way to use it. Emacs is not vi, and using Emacs like Emacs makes more sense. Most users explore your filesystem and spawn and monitor processes from within Emacs, rather than from a terminal.

          Not that you can't work that way (and using `emacsclient` is the way to do it), but you're losing out by trying to shoe-horn usage patterns familiar from other toolchains onto Emacs. Emacs is not a text editor, it's a text manipulation platform that includes an editor - a number of editors in fact, including a vim clone.

        • rbc 3 days ago

          I think running daemon mode has significant advantages. You can have frames running on multiple virtual desktops for different uses. You can also step away from a buffer, and return to it, maybe from some other location on a different computer.

    • iLemming 2 days ago

      > instant startup

      My config is Doom-based. I use about 300 different third-party packages, and I don't even know how many built-in ones. It takes about 1.3s to start. Wishing for it to start even faster is like wanting my microwave to warm my tortilla in 5 seconds instead of 30. I don't restart Emacs every day, nor do I eat tortillas daily. Use a modern package-manager, and defer the loading of packages, it will start very fast - just like 'emacs -q' does.

      > minimal keypress-to-display latency

      A lot of times, setting keyboard rate is all it takes to make it nice,

      On Linux: xset r rate 170 80

      On Mac:

      defaults write NSGlobalDomain KeyRepeat -int 1

      defaults write NSGlobalDomain InitialKeyRepeat -int 10

  • nabla9 4 days ago

    - Use Common Lisp instead of Emacs Lisp.

    - Design a more modular architecture to make it easier to extend and maintain different components.

    - Design a more robust plugin system for development and distribution of extensions.

    - Implement better sandboxing and security measures for extensions.

    - Better APIs for extension developers.

    - better multi-threading support baked into the editor.

    • az09mugen 4 days ago

      For the Common Lisp part, someone created lem [0], but for the other points I can't tell. I know there is an extension manager being developped, but am not able to judge the robustness. Also that there isn't org-mode.

      [0] : https://github.com/lem-project/lem

    • dokyun 3 days ago

      > - Implement better sandboxing and security measures for extensions.

      Why, pray tell, should this be of any concern at all? Sandboxing is used when the host is concerned about running programs that he doesn't trust. There is no reason that an Emacs package would require security measures around it, unless it were knowingly potentially malware. The only reality in which I could see this is if people were using proprietary Emacs extensions, in which case I would entirely understand it, because then people would be willingly running malware inside their editor. Perhaps this the stance VS Code users like to take towards extensions?

      • foobarbaz33 2 days ago

        > Sandboxing is used when the host is concerned about running programs that he doesn't trust.

        Trust? Trusting criminals doesn't stop them from committing crime.

        You may trust your emacs color theme author. Pretty colors from an innocent artist. You run the theme code without any sandboxing. Everything is going well. Then the author adds a keyloger, project code scrapper, and phone-home feature in his theme.

        You update all your emacs packages automatically without any code review. Then you start getting emails from your companies security team asking why you uploaded sensitive projects to a 3rd party.

        Wouldn't it make more sense to restirct color themes to color and font related tasks? Why should a color theme be allowed to scrape sensitive code from your disk and upload it to a 3rd party without your consent?

        • dokyun a day ago

          Read my other reply in this tree.

          > You update all your emacs packages automatically without any code review. Then you start getting emails from your companies security team asking why you uploaded sensitive projects to a 3rd party.

          If you do not trust the author or maintainers of a random program and refuse to review any code updates before installing it, then you are a moron.

          I think if there is a concern that people would upload malicious packages, then there would be a level of trust put into the repositories that accept and offer them to review submissions before accepting them. This is still imperfect, but it shifts some responsibility off of you.

          > Wouldn't it make more sense to restirct color themes to color and font related tasks? Why should a color theme be allowed to scrape sensitive code from your disk and upload it to a 3rd party without your consent?

          Why SHOULDN'T a color theme be allowed to scrape code from your disk? Maybe the color theme is sophisticated enough to want to do that, or talk to some network. Something like a seasonal color theme that responds to the local weather might have a lot of hack value; and that is precisely the point you are missing. Emacs is not about restricting what you can and can't do, because the designers of Emacs understand that restricting what the user is allowed to do ultimately hinders freedom and creativity. It is one of the very few platforms left that's still like that, and I believe it should stay that way. If people want to use an editor that's very safe and tells them what to do rather than vice versa, then they should probably consider VS Code, or something like it which DOES upload your data to a third party without your consent, because it is smarter and knows better than you what you should be doing with your computer.

          • foobarbaz33 11 hours ago

            > If you do not trust...

            Trust provides no protection.

            > refuse to review any code updates before installing it, then you are a moron.

            I personally do review every line of Emacs code I run. But I'd wager only a small handful of Emacs users do that.

            > Why SHOULDN'T a color theme be allowed to scrape code from your disk?

            Security.

            > precisely the point you are missing.

            Not missing it. nabla9's suggested security measures for extensions. You then asked why security is a concern. You seemed to imply there wasn't any reason for limiting extensions if you trust the author. That's simply not true, as you can easily be sabotaged by the most trusted color theme author.

            • dokyun 8 hours ago

              > You seemed to imply there wasn't any reason for limiting extensions if you trust the author.

              That may be implied but the precedent is not important. The bigger consequent point I am trying to make is that there is no good reason for limiting extensions at all, and my reasoning for that will follow.

              > you can easily be sabotaged by the most trusted color theme author.

              Okay. Let's say that we solved the hypothetical issue of colour theme authors sabotaging their themes by requiring color themes to use a format that can't evaluate arbitrary code, only dictate UI options.

              Now what about all of the other packages that aren't color themes, that do more useful things and require greater breadth of functionality? I am not trying to separate things into functional and non-functional, as it is futile to do so--there are an infinite number of separations between the degrees of utility packages have, and once you have "solved" the issue of their insecurity by restricting one class of them, there are always more. And every time you do this you only degrade the freedom and extensibility of the entire system; you do not gain anything by it, you only lose.

              This phenomena can be explained because it's really an application of Gödel's Incompleteness Theorem. For any program running on any computer, it will always be possible to induce conditions that the program was never designed to handle. Thus it is my belief that the entire field of computer security is really a joke, and anyone who sacrifices freedom for safety ultimately ends up with neither.

              In practical terms a bit of security is useful, however Emacs is not the kind of program that benefits from it. It is not useful to waste time reasoning about which methods of security should be applied to a text editor. If you were using Emacs to run an air traffic control system then this type of thinking might make sense, but not as a reasonable or common case.

      • tmtvl 3 days ago

        Well, Emacs does ship with a browser (because of course it does, that kind of thing is what makes Emacs so amazing) and we all remember the XZ Utils near-backdoor, so I think that security measures would be useful for people who decide to use a less trustworthy archive like MELPA or who install extensions with package-vc.

        • dokyun 3 days ago

          The biggest security nightmare that web browsers have to deal with is that they are always continuously running random JavaScript. Emacs' browser doesn't handle JS, which is a good thing for a simple browser. Emacs doesn't share this problem in that the Elisp that you run is all chosen by you, and it's always free and never obfuscated.

          I don't really see how the XZ backdoor is relevant to this conversation, since these types of exploits are the fear of server operators, and generally not people who run user programs like Emacs on their desktop. A rogue Elisp function could delete all of the files in your home directory if it wanted to, but people don't really complain about that because being able to delete files is a desirable function.

          If you ask me, Emacs is a program where user freedom is and should be the ultimate goal. Adding security features that the user has to jump around 'for his own good' and only really serve as idiot nets are dubiously effective and only hinder this freedom. If someone wants to install a package from a source other than the official archives, then the trust is placed in him to actually look at the source code he's received. Even if you install an official package you should still look at the code, as it's quite useful to know what's going on inside it when you want to configure it or add functionality. The vast majority of packages I use are a single file and tend to not take up more than a few screens, so they are easily understandable.

        • anthk 3 days ago

          Just create another user account and test your new stuff there.

          • jrootabega 3 days ago

            How does one just test for malicious code?

      • jrootabega 3 days ago

        A lot emacs usage today consists of running programs you shouldn't trust. And the rest of it is hard because you are either reviewing other people's libraries a lot, or simply not using other people's libraries, or updating infrequently.

    • shprd 4 days ago

      > Use Common Lisp instead of Emacs Lisp.

      Interesting, why not a scheme? Is it because the popularity in the industry? I don't know much about Emacs or lisps and looking to understand better

      • nabla9 4 days ago

        Scheme is smaller, has more static and less interactive philosophy. CL has most things you need straight out of the box. It's more like operating system than programming language. Exactly what Emacs wants to be.

      • aidenn0 3 days ago

        elisp is more like CL than it is like Scheme; RMS was aware of CL when he was working on emacs, but was suspicious of some of its new features (like lexical binding).

        • anthk 3 days ago

          Emacs' Elisp it's pretty close to Common Lisp, any CL user can learn Elisp in days (and the opposite it's true too). There's even a port of PAIP exercises into Elisp:

          https://github.com/yfuna/paip-el

  • hollerith 4 days ago

    Support prettier typography (if the user is not interacting with Emacs through a terminal, in which case of course the typography is up to the terminal-emulation app). If text in Emacs looked as pretty as text on the web does, it would be less of a struggle for me to stay focused on the Emacs text. (Text on the web was already much above average in pleasantness to look at and to read in the 1990s.)

    Get rid of any keybinding or UI convention that is there because that is the way they did it the AI Lab in 1967. Make the UI as familiar to the average computer user as possible (but keep the general design of a large rectangle of text) by using mainstream conventions (which come mainly from the Mac and Windows) for how to respond to this or that keypress or to clicking or dragging with this or that mouse button.

    Inside Emacs is a cross-platform toolkit (where the platforms are MacOS, other Unix derivatives, Windows and the terminal) I would split Emacs into 2 projects: a toolkit and an app that uses the toolkit. That way, if someone wants to create an "standalone" org-mode app, Magit app or Gemini browser designed to appeal to people who do not want to spend any time learning to use Emacs the app or "Emacs the generalized interface to information", they have a straightforward way to do so. (These "standalone" apps that are as easy to learn as any other GUI app will I hope help popularize the Emacs ecosystem.)

    One thing I definitely would not change is I would not make Emacs dependent on or closely integrated with a browser engine.

    • tazjin 3 days ago

      > If text in Emacs looked as pretty as text on the web does

      Do you have an example of this? I can't tell any difference for the fonts that I use (with emacs-pgtk). I believe Emacs uses Harfbuzz (same as Chrom{e|ium}).

      • hollerith 3 days ago

        Most of the text on the web for example is in a proportional-pitch typeface.

        Does your Emacs usually use a proportional-pitch typeface? If so and you're on Linux, I'll install the font you are using.

        I've tried using proportional typefaces in Emacs (on Mac), but there was something off, so I went back to monospaced. I could try again now that I have a Linux machine.

        The text in my Emacs looks almost exactly like the text in my Gnome Terminal. (A slight difference in size is the only thing I notice. To be painfully precise, (window-system) evals to 'pgtk on my Emacs.)

        The text in Gnome Terminal is not terrible, for sure, but text on the web is a nicer in my experience.

        • chrchr 3 days ago

          Pardon me if you're ahead of me on this, but it sounds like you might be using a proportional typeface as the default or fixed-pitch face. You should get nice-looking proportional type if you set the variable-pitch face to your desired typeface and enter variable-pitch-mode in the buffer. E.g.,

              (custom-set-faces '(variable-pitch ((t :family "Verdana" :height 180))))
          
          And then in the buffer you wish to view with proportional type, M-x variable-pitch-mode.
          • jasomill 3 days ago

            I use IBM Plex Sans (proportional) as my default Emacs font, with variable-pitch as a no-op (i.e., defined as "(variable-pitch ((t nil)))" in custom.el), and use IBM Plex Mono as fixed-pitch.

            Tips for using a variable pitch font as the default:

            0. Choose default fixed and variable pitch fonts with identical baseline-to-baseline heights for a given size; this makes everything described below work better (e.g., this is true for all fonts in the IBM Plex family across all platforms I regularly run GUI Emacs on [Linux, Mac, Windows]).

            1. Define a fixed-pitch-mode by copy-pasting the built-in variable-pitch-mode and making the obvious changes (both are trivial applications of buffer-face-mode).

            2. Add fixed-pitch-mode to hooks for modes that don't play nicely with variable-pitch fonts (calc, dired, hexl, magit, terminal and shell modes, etc.), or where you just prefer fixed-pitch modes (hint: define your fixed-pitch-mode in a package so you can use use-package's ":hook ((foo-mode bar-mode … baz-mode) . function)" syntax to manage this).

            3. Some modes that pop up windows (frames in Emacs parlance) within editing buffers require extensions (e.g., company-posframe-mode for company-mode) to work properly in variable pitch buffers.

            4. Last, but certainly not least: assign a convenient key binding to toggle fixed-pitch-mode. I can't emphasize this enough! In fact, I've found that variable pitch is fantastic for coding in most languages if and only if fixed pitch can be quickly toggled on and off with a keystroke, iff this setting is per file rather than global (and iff both fonts have identical line heights, but this is a feature of font families rather than editors).

            For this reason alone, I'd argue that Emacs supports variable pitch fonts better than most text editors.

            • skydhash 3 days ago

              I use IBM Plex across the board and I was trying to understand the font issue because I do not have it. I default to fixed-pitch mode for everything, and use variable pitch for UI elements.

          • hollerith 3 days ago

            Thanks for the info, but the result of that is not any better than the result of what I had already done. (I wrote a command that put an overlay on the buffer to change the typeface.)

            It's not as good text on the web IMHO. Typography is very complicated, and I think the people who did the typographical details of Chrome and Firefox were very skilled, is my guess.

        • tazjin 3 days ago

          I used to use proportional pitch fonts for telega.el and certain document buffers, but I stopped because I find that with Jetbrains Mono (for me personally) there isn't any benefit even for longer text. I'd rather have everything be uniform.

          Emacs is perfectly capable of rendering other fonts, too, though.

          • hollerith 3 days ago

            Yes, I remember now that having everything be uniform was one reason I stopped with the proportional faces in Emacs.

      • abdullahkhalids 3 days ago

        I have never figured out how to get a good font and rendering going for text in Urdu/arabic script.

        • hollerith 2 days ago

          Is vscode better at Urdu/arabic?

          • abdullahkhalids a day ago

            I have never tried but I assume you can do as well as a browser. But I would never use VSCode for writing generic notes. There is so much distracting mess in it.

            I did setup Obsidian for a friend to write in Urdu, and that worked almost perfectly modulo some minor stuff.

      • hollerith 3 days ago

        Huh. I use pgtk Emacs, too, and am surprised to find someone who doesn't find my statement obvious.

        • tazjin 3 days ago

          Well, if there's no further info then I'm going to speculate you've misconfigured something ;)

          • actionfromafar 3 days ago

            Ok then, "make it harder to hold it wrong". :)

            • hollerith 3 days ago

              I'm not holding it wrong.

              • actionfromafar 3 days ago

                That's the joke, people weren't holding the iPhone 4 wrong, either. :)

  • celeritascelery 3 days ago

    I have actually done some work on a rewrite of the Emacs core in rust[1], so I have thought a lot about this question. Most of the things you would want to change could be fairly easily added to the existing Emacs. The biggest ones that are hard to do with the current core is concurrency and collaborative editing. My particular core is focused on concurrency[2].

    Unlike a lot of commenters here, I am trying to stay backwards compatible with elisp. It is not the best, but huge body of existing code is one of the strengths of Emacs. Unlike vimscript, elisp isn’t painful enough to be worth replacing.

    [1] https://coredumped.dev/2021/10/21/building-an-emacs-lisp-vm-...

    [2] https://coredumped.dev/2022/05/19/a-vision-of-a-multi-thread...

  • dmitrygr 3 days ago

    > If you were rewriting Emacs from scratch, what would you do differently?

    UI: Electron, of course.

    Json to represent the edit buffer in RAM. Each utf8 code point base64 encoded, in a json array, it itself, as a blob, base64 encoded. Now, before you complain that that is gonna blow up the data too much, don’t forget that 1. “Ram is cheap” and 2. “gzipped base64 is about the same size as binary”. So, of course, we’ll gzip the data in RAM.

    Plugins should be JavaScript, as should be self-evident. And you’ll need a few installations of python (both 2 and 3) and node.js (each in its own docker container, obviously) to glue it all together and provide reproduceability.

    With some care and work, it’ll run even on a modest machine taking up merely 60GB of disk, 32GB of RAM, a 4090ti GPU, and 8 CPU cores.

    Every key press should be passed through an LLM, to add some intelligence to the editor. The user will, of course, supply a ChatGPT api key when they register for their mandatory myNewEmacs.ai account that they’ll need to subscribe to the editor for only the cost of a few lattes a month.

    It is 2024, after all. One must use modern tools and technologies.

    • iLemming 2 days ago

      Are you sarcastically describing VSCode, I don't get it?

      • kagevf 13 hours ago

        I think it's meant to be a sarcastic take of the next iteration after VS Code :)

    • Crosseye_Jack 3 days ago

      LGTM: Ship it!

    • maxk42 3 days ago

      Prefer Tauri to Electron. It is 2024, after all.

      • iLemming 10 hours ago

        Heh... The obvious choice of course is Unreal Engine. It's almost 2025, after all.

    • aardvark179 3 days ago

      Thanks, I hate it.

  • susam 4 days ago

    Instead of using ctrl and meta modifiers, use a leader key like escape or semicolon or comma or some such thing as the prefix key for key bindings. In fact, this desire for leader-key-based, non-modal text editing led me to write devil-mode for Emacs: <https://susam.github.io/devil/>.

    • smokel 4 days ago

      Make CapsLock an additional Ctrl. On many old keyboards that is where the Ctrl key was positioned [1].

      [1] https://en.m.wikipedia.org/wiki/Caps_Lock#Placement

      • susam 3 days ago

        I know many people like to remap Caps Lock to function as Ctrl. However that setup does not quite work for me. There is only one Caps Lock key on the left side of the keyboard. I need Ctrl on both sides of the keyboard, so that I can use the left Ctrl key while typing Ctrl+P but the right one while typing Ctrl+A.

        There are other options as well, like remapping the Enter key to act as Ctrl when chorded or using sticky modifiers. I think using an ergonomic keyboard with two large Ctrl keys on both sides of the keyboard is probably the best solution. I've discussed some of these alternatives in more detail <https://susam.github.io/devil/#why>.

        By the way, there are some vendors that still make Unix layout keyboards with the Ctrl key positioned where Caps Lock key usually is: <https://deskthority.net/wiki/Category:Keyboards_with_Unix_la...>.

        • tom_ 3 days ago

          I just leave Ctrl where it is and press it with the knuckle of my little finger. I do it just like the guy in the pic on this page, pressing the control key with his little finger: http://xahlee.info/kbd/how_to_press_control_key.html - because that pic is of my hand. (Xah might not recommend doing this all the time, but I've been doing this for nearly 20 years now and I've had no problems.)

        • asciimov 3 days ago

          For the past 3 years I’ve done the following remap Caps -> lctrl/esc, enter -> rctrl/enter, tab -> lalt/tab, backslash -> ralt/ backslash. Also have the physical right alt mapped to multi key/dead greek.

          It works really well, and makes emacs much more comfortable to type in.

          Downside is this keeps me locked to X11 and fighting the occasional app that reads the key codes directly.

      • imiric 3 days ago

        Instead of making it an additional Ctrl key, you can also make it a new separate modifier key with XKB[1]. I've found this very useful over the years for WM-related key bindings, leaving the other modifiers for applications.

        Tangentially, I really loathe how Wayland has no alternative to this. I'm expected to configure keyboard layouts in every DE or WM I use, which is a much worse UX.

        [1]: https://vincent.bernat.ch/en/extending-xkb#attaching-symbols...

      • macintux 3 days ago

        I was very disappointed that Apple gave up that fight.

        They also at some point joined the PC world in moving the nubs on their keyboard from "d" and "k", where you were more likely to notice if your fingers are not in their proper place on the home row. Now if your right hand is offset slightly to the right, you won't feel anything, which is less immediately noticeable than if the nub were under the wrong finger.

      • petepete 3 days ago

        I use a HHKB because of this. On the Acorn Archimedes I learnt to type on, it wasn't an extra Ctrl, it was the Ctrl.

        Caps lock was rightfully relegated to bottom left.

    • fsckboy 3 days ago

      emacs is not its keybindings. you can bind your emacs keyboard to do what you are asking for; as you said, you wrote a mode for emacs that works the way you want, and it wasn't necessary to rewrite Emacs.

      • susam 3 days ago

        > emacs is not its keybindings ... and it wasn't necessary to rewrite Emacs

        That's indeed true! But the premise of this question explores the scenario: What if we did rewrite Emacs from scratch?

        • sping 2 days ago

          Making modal editing with a leader key the default rather than an option it currently is, is a pretty trivial thing to bring up as the stand-out "feature" a rewrite could provide.

  • GregDavidson 3 days ago

    1. I would like higher-level datatypes for key abstractions, such as

    (1.1) Marks -> StableRegions

    - reference specified text within a buffer

    - continue to reference same text despite insertions or deletions

    (1.2) Strings & characters -> StringBuffers

    - lightweight immutable buffers (no branches or versions)

    - able to hold any content a subset of a buffer can hold

    - could be StableRegions of an Arena Buffer

    (1.3) AbstractBuffers

    - immutable buffers + a tree of deltas

    - some special delta types for, e.g. indentation

    - AbstractBuffers support transactions and versioning

    - can support collaborative editing

    - specific versions can be written to textfiles

    - all versions can be stored in git or in relational database

    2. Use WebAssembly instead of a specific programming language.

    - This was the vision for Guile.

      - Scheme one of several languages.
      - ELisp supported but Emacs port efforts keep failing!
    - The Racket ecosystem has captured this pretty well - if only it supported ELisp!

    3. Prefer languages at least as simple as Scheme, but with monotonic semantics!

    Non-mutable operations would appear as transactions appearing as branches/versions.

    An editing session would automatically follow the latest transaction in the current branch.

    Concurrent edits of the same "file" create different branches as with git, et al.

    4. Separate monolithic Emacs process into SessionProcesses, DisplayProcesses and WorkerProcesses.

    Multiple DisplayProcesses would allow for tightly-coupled collaborative editing. A WorkerProcess would interface buffers with processes, files, git repositories, etc. on a specific account@host giving functionality like Tramp. A user would start with one DisplayProcess connected to a SessionProcess. A SessionProcess would provide the interface between DisplayProcesses, WorkerProcesses and any co-SessionProcesses of collaborators. WorkerProcesses could be scripted without any other overhead.

    • celeritascelery 3 days ago

      Are all these “higher-level datatypes for key abstractions” trying to achieve first-class collaborative editing? That sounds a lot like Zed.

      • GregDavidson 3 days ago

        I want ALL of what Emacs provides, much more than any other "editor" - actually text-centric programmable productivity platform. And I want more than what Emacs provides, e.g. non-destructive editing and collaboration. So yes, there are other interesting editors out there such as Zed. And no, it's not about adding 1 important feature. I'm greedy!

  • wging 3 days ago

    I'd really prefer for emacs' implementation language to have been a lisp-1 rather than a lisp-2. It's annoying to have to do different things to treat a function as a value (put it into a list, assign it to a variable, etc.), as opposed to all other kinds of data. Any benefit you get from allowing name collisions (i.e. function named f, related but distinct variable also named f) seems very small in all elisp code I've seen and promotes confusion more than it enables desirable programming patterns.

    I'd make lexical scope the default and dynamic scope opt-in on a per-variable basis. This one is probably less controversial. I think the devs are moving in that direction (e.g. by changing emacs core code to use lexical scope and adding warnings for code that doesn't opt into it), but I don't see how they will actually be able to change the default without breaking a whole bunch of user code.

    • tmtvl 3 days ago

      My introduction to Lisp was through SICP and Scheme so I used to be in favour of Lisp-1, but having used Common Lisp for a while now I've changed my mind. Treating a function as a value is easy enough:

        (mapcar #'list list)
      
      It's like how if you want to treat a symbol as data you have to quote it:

        (let ((x 2))
          (list 1 x 'x))
  • khazhoux 3 days ago

    Emacs is the shittiest tool I’ve been using since 1992 and will use till I die.

    • eointierney 3 days ago

      It's the finest manure to fertilize thought we can turn over with only a fork

    • ironmagma 3 days ago

      It may be shit, but it's freedom-flavored shit. The best kind.

  • eointierney 4 days ago

    The core should be in rust, verfied in lean, and the runtime should be in guile. Literate programming in org-mode should be a hard requirement. Package management should require patch algebra. Macros should be submitted to a leaderboard in a blockchain and yield flair in EUDC. M-x measure-beard-length should require 10000 hours of logged usage and unlock the major mode infinity-categorization.

    Tongue-no-longer-in-cheek:

    I reckon the C core of Emacs is some of the most battle-hardened code out there. Verification, a-la SEL4, is probably irrelevant but still nice. Guile is modern and performant but Elisp is still its own little joy. Literate programming is always nice until it gets in the way. Straight is good enough for me now. Macros are always cool and a leaderboard would be fun, but patch algebra is really nice, see jujutsu nowadays. And beard length is gendered and so only partially admissable. Infinity categories are way out there and always good for a reference.

    • fsckboy 3 days ago

      >beard length is gendered

      you insensitive clod

      https://www.gocomics.com/calvinandhobbes/1986/02/14

    • denotational 4 days ago

      Ok, you had me for the first three sentences.

      • neilv 3 days ago

        Implemented mostly in Guile, with just some native primitives/kernel bits in Rust, makes a lot of sense, for a programmer's application platform in the spirit of Emacs.

    • sshine 3 days ago

      > The core should be in rust, verfied in lean, and the runtime should be in guile. Literate programming in org-mode should be a hard requirement. Package management should require patch algebra.

      Since I agreed with all of these, I’ll add some more non-ironic, idealistic wishes:

      Plugins must be written in sandboxed WebAssembly so you can know what a plugin is capable of without reading the source code. The runtime must be portable so it can run in wasm32-wasi.

    • mdaniel 3 days ago

      relevant: https://github.com/remacs/remacs#rust-heart-emacs although as of this message it says they've given up in favor of https://github.com/emacs-ng/emacs-ng#contributing which does mention Rust but seems to be ... a lot different from Emacs so I guess they're really going all-in on the "NG" part

      for the non-tongue-in-cheek, also relevant: https://www.emacswiki.org/emacs/GuileEmacs#h5o-2

    • mech422 3 days ago

      >> see jujutsu nowadays

      I'm looking at pijul..

      https://pijul.org/

    • eddieh 3 days ago

      When I saw “should be in rust” my instinct was to flame like nobody’s business, glad I kept reading. Lmao. Good slow burn.

      Though, not to put too fine a point on it, I know it was in jest, but the core implementation language is the least of my concerns. As long as it is extremely portable, compiles fast, and runs on virtually anything, then whatever the core is, doesn’t matter much to me.

  • mikewarot 3 days ago

    I'd start with the core TECO editor I've written in Free Pascal[1].

    Free Pascal does gigabyte strings you don't even have to allocate. Then I'd read the Emacs manual, and start writing code and tweaking TECO to make it all impedance match better.

    But I'm old and weird, so maybe not the best way to get there.

    [1] https://github.com/mikewarot/teco

  • federicotdn 3 days ago

    I would change the development platform. Doing everything by mail makes things more difficult for people that are not used to the older mail+patch workflow. Having something like GitLab or sourcehut would be nice, as it would also bring a more modern bug tracker.

    Personally I find following email conversations much harder than just a single conversation thread like in a GitHub issue, for example.

    • bbarnett 3 days ago

      All sensible email clients have a 'thread view' for just this purpose, which effectively makes it a 'single conversation thread'.

      • federicotdn 3 days ago

        Yes, the Gmail web client does this. However my (personal) problem comes more from reading the emacs-devel archives, where the thread view takes the shape of something more like a tree (maybe I'm not configuring something correctly). I was subscribed to emacs-devel at some point (which made reading easier) but it started filling up my account storage so I un-subscribed.

        • iLemming 2 days ago

          Use https://yhetil.org/emacs-devel to browse the threads. If you use mu4e or notmuch and often delete some older emails locally, but still want to read the whole thread, you can write some elisp helpers that would find the thread on point (based on email-id) or even download the whole thread.

    • mdaniel 3 days ago

      I recently learned FSF does have a GL instance but it seems to be locked down to just "approved" emails and also only used for its CI capabilities: https://emba.gnu.org/emacs/emacs/-/pipelines

    • iLemming 2 days ago

      I agree, and I've been observing this for years. It's now becoming a generational problem - younger programmers know and understand PR model, they don't want to deal with mailing threads and patches. These days, young people are like: "You sent me what? an email? Are you joking?" People shouldn't be catering for the comfort of the maintainers, no matter how arguably mailing threads are techologically more superior, it should be the opposite.

  • dilap 3 days ago

    Biggest issue w/ emacs is once you start adding packages everything is half-broken. Ideal emacs replacement would preserve the ease of extension and flexibility but have more of a static time verification systems (types and ...?) to prevent bugs (and bonus, make easier to achieve speed too).

    • mark_l_watson 3 days ago

      I have been occasionally been hassled by Emacs package management for forty years.

      A few years ago I very much shortened my .emacs file using the Straight package manager and I have been happier.

  • keyle 3 days ago

    I like emacs for its flexibility and its ability to be a platform for people to build just about any extension. So for this you'd need a solid scripting language. I was never sold on Lisp but it's fine. I'd prefer to see lua; it just makes more sense.

    The repo-reference stuff works pretty well all things considered. If it were python it would be hell.

    Crazy side of me would like to see it fully written in a safe(r) language like rust, swift or zig. Basically your config would be a recompiled subsystem, loaded at runtime, or you'd recompile the whole editor.

    It wouldn't hurt if the config had a bit more structure. Forcing people to set fonts etc. BEFORE loading other things; essentially enforcing an order in which things get loaded. It can get hairy after years of working in emacs.

    I love that it's keyboard driven and I'd keep that for sure.

    The config should automatically be a git repository and any change should generate a meaningful commit (thinking out loud).

    Better key handling and none c-x nonsense. Switching between keyboard combos and straight up shortcut should be a defined choice not overwritten by x. Every 'plugins' should expose their shortcuts override clearly. Have sane defaults that aren't 30 years of cruft. This means you'd have to consider running on mac just as well as windows, and in and out of the terminal makes this extremely tricky.

    Better plugin system and discovery. Often the best and only way to find how to solve a problem in emacs was by finding some random gray-beard post on some forum by sheer luck.

    • inkyoto 3 days ago

      > Crazy side of me would like to see it fully written in a safe(r) language like rust, swift or zig.

      Emacs Lisp is a very safe language. Even though the Emacs core is written in C, that is immaterial and impalpable to Emacs users as they only interact with Emacs Lisp. What benefits would Rust / Swift / Zig bring to an average Emacs user?

      > Basically your config would be a recompiled subsystem, loaded at runtime, or you'd recompile the whole editor.

      elisp -> bytecode compilation in Emacs… predates humanity?

      https://www.gnu.org/software/emacs/manual/html_node/elisp/By...

      The entire stash of Emacs packages compiles into the byte code at the package installation time, anyway. Personally, I even byte-compile-file my ~/.emacs to eke out an imperceptible speed improvement at the startup time, which is slightless less than entirely useless but it warms my heart that I can do it.

      Recent versions of Emacs can also compile Elisp into the native code:

      https://www.gnu.org/software/emacs/manual/html_node/elisp/Na...

      > Better key handling and none c-x nonsense.

      Perhaps you do not need Emacs then.

      • kazinator 3 days ago

        > elisp -> bytecode compilation in Emacs… predates humanity?

        Actually, I believe it was developed by HackerNews hater Jamie Zawinsky.

        • inkyoto 3 days ago

          jwz also predates humanity.

      • binary132 3 days ago

        The pseudo-JIT provided by gccjit is really quite good. I’ve been using emacs for a pretty long time and it is definitely the most noticeable improvement they’ve added so far (and it even works seamlessly out of the box on windows!)

        • inkyoto 3 days ago

          It is exceptionally good, indeed. Emacs now starts up in an instant (< than 1 sec) from the cold to a fully working state, which includes loading a hefty .emacs

    • iLemming 2 days ago

      > I'd prefer to see lua; it just makes more sense.

      To you. To me it wouldn't. If it was Lua, I'd still use Fennel. If it was Javascript, I'd do it in Clojurescript; If it was in C, I'd probably find a way to use Common Lisp or Jannet; If it was Python I'd probably use Hylang or something; if it for whatever reason used JVM (like IntelliJ) or .Net CLR, I'd do it in Clojure.

      You see, once you actually grok Lisp, at some point you do become a true "polyglot programmer" - for me switching between different runtimes - JVM, Node, Browser, Native, Lua, etc., is as simple as picking up a different Lisp dialect. Even switching between JS and TS for most programmers is not as simple as for me jumping between different Lisp dialects.

      I'm not some indentured servant of one particular programming language, your favorite bits of syntactic sugar and "design patterns" made for one particular PL don't amaze me, don't annoy me, don't make me feel bad or good, I simply don't care. I just want to build shit, and I want it to work. I'm sure if there's an actual God, and he had to explain the universe in written form, it would be in homoiconic scripture - anything, yes, just about anything can be explained in functions, neatly wrapped between parentheses, anything beyond that is fluff made by human pride, simplicity requires less not more.

    • iLemming 2 days ago

      > The config should automatically be a git repository and any change should generate a meaningful commit (thinking out loud).

      git-auto-commit-mode exists, try it.

  • wwarner 4 days ago

    create an efficient async api for plugins. it’s kind of a kernel+apps situation. an extensible editor has to have a scripted plugin system, and they should be hosted by a core that is fast, can preempt plugins, and provides “ipc” btw plugins for advanced functionality.

  • chillpenguin 3 days ago

    There's something about it where it doesn't feel quite right when using the mouse as a GUI app. Compare it to something like Sublime Text. I can't quite describe it exactly. It just feels off. It feels like you are supposed to use the keyboard shortcuts to navigate around, and the mouse is sort of bolted on secondarily or something. So I would try to make it feel more like a modern GUI app, where using the mouse feels right.

  • narag 3 days ago

    Disclaimer: my experience with Emacs is limited. I've only used it because it's the path of least resistence to learn Lisp.

    So for me it would be: everything that makes Lisp programming easier, like:

    - Use a Lisp implementation that's not tied to the editor.

    - Slime/Sly + Quicklisp functionality out of the box.

    - Integrated syntax awareness, preferably "syntax directed" for programming.

    There is more, but it'll be obvious (like updated defaults and looks) unless you want to make an outright clone, or at least a direct replacement option, I wonder if that's what you mean: "rewriting Emacs" seems to suggest it is.

    It's difficult. These big old projects like Emacs, and Lisp itself, have both succeeded and failed. There are features that made them last decades and others that made them stop attracting new users. How to capture the appealing parts without reproducing the quirks?

    • mark_l_watson 3 days ago

      I used to do a lot of consulting work using Common Lisp on remote servers and would frequently need to set up tmux, Emacs, SBCL, Slime, etc. on remote servers to do my work. Keep good notes, and it gets much easier and faster.

      • narag 2 days ago

        Past month I setup ssh accounts to access a remote server using Laravel. The guys doing the programming absolutely hate the console, but it turns out VS Code can work through ssh connections just fine. Not sure if it can also debug, but editing was seamless. I wonder if it uses sftp or escape codes.

  • Koshkin 3 days ago

    First of all, I would make sure that it would not be swapping constantly when running on eight megabytes!

    • mech422 3 days ago

      LOL - Haven't seen that one in ages...

  • aardvark179 3 days ago

    It’s interesting the divide we see here between particular implementation choices, and very general design principles. FWIW I think this exposes some of the tensions in Emacs’ design itself. The fact that everything is customisable is both great and the source of many problems, and it depends on which direction you want to go how you want to move that particular needle.

    I’m not totally sure what I’d do. The semantics of multithreaded or async alteration of buffers are not easy and so, even though they would be great in many ways, might make simple customisation just too painful.

  • sevensor 3 days ago

    More to the point, emacs already has been rewritten substantially. There’s the initial rewrite from TECO to lisp, there’s the 80s implementations like uemacs (famously used by Linus), we had a major fork with xemacs in the 90s, there’s guile emacs (ready any day now), lem is almost but not quite a Common Lisp emacs, and it’s been making a lot of progress recently. So go ahead with your rewrite, you’re in fine company!

  • ristos 3 days ago

    I wish it were built with a very small, minimal core, that was just the TUI with the lisp machine like functionality, scriptable using R7RS scheme instead of elisp. And then everything else is built on top in a more modular fashion, with "battery packs" that install many modular components into one higher level functionality, like an IDE.

    I'd like to eventually write something like this, there are a lot of things it would enable that you just can't do with emacs. It would be an emacs killer if implemented well, but it would also open up a whole new set of possibilities.

    I don't know how far I'd get just working on it on my free time, which is competing for time with other projects. I'm looking for funding for these sorts of projects. If anyone reading this is an investor and interested in funding this sort of thing, please reach out.

  • jiffygist 3 days ago

    - throw away c language mode and and rewrite it from scratch

    - make dired more usable like a normal file manager. opening a file with the associated program that would persist after emacs closes should be its primary feature. ideally i want something like a mix of ranger/lf with dired

    - make it have fully-featured terminal, not dumb terminal. make it easy to open lots of terminal windows. add a way to change terminal directory with fido or dired

    - make working with ssh not so horribly laggy

    • celeritascelery 3 days ago

      All of this is possible in the current Emacs.

      1. You can already define what program opens a file in dired. You could even use detach it from the Emacs process so it stays open when Emacs closes.

      2 we already have vterm, which has all the features you described.

      3. There are ways to make this better. I am actually in the process of writing a blog post about working efficiently over tramp.

      • jiffygist 3 days ago

        Thanks for vterm, that's just what I need.

        For dired I do have my bindings (one for xdg-open on a single file, another for custom command on a bunch of files).

  • bjourne 3 days ago

    I would use Python as the extension language since it is omnipresent. ELisp has lots of terrible misfeatures that makes building large software in it difficult. I would also add better support for the services model. E.g., rather than adding spell-checking and syntax-highlighting modes you could defer those tasks to LSP servers.

  • taeric 3 days ago

    This will fall to the curse of most people answering didn't write emacs.

    That is, rewrites can work sometimes. You typically need someone who was involved in the last two for it to work, though.

    If you haven't written it once, you have no real idea on any compromises that were made.

    If you haven't tried to do it without a compromise, you don't know which compromises were unexpectedly vital.

  • swah 3 days ago

    The main quality I remember Emacs having compared to something like VSCode is its ease of extendability - but I don't know how to balance the liveness/messyness of a personal Emacs setup and wanting to package some of those bits to third parties. I think its a tension there...

  • nickd2001 19 hours ago

    Add in a shortcut of : then q to quit ? ;)

    • iLemming 11 hours ago

      Evil does that already and more. There are ex-commands that don't exists in Vim and you can even extend and add your own.

  • buescher 3 days ago

    Take a look at the Mac editor Alpha. It is arguably emacs-in-tcl and did a very nice job of balancing cua-style keybindings with emacs-style. Better, if I remember correctly, than things like cua-mode. It’s been literally decades since I’ve used it though, and it might be impossible to square that circle in a way that’s really frictionless.

  • kanodiaashu 3 days ago

    I would 1. Make it more capable as a full GUI - currently I have trouble displaying jupyter notebooks with images/progress bars etc in it. 2. Make an 'emacs app store' where you can get paid plugins (I'm going for Cursor). 3. Make collaborative editing possible.

  • mdaniel 3 days ago

    I think others have hinted at it, but for me any foundational application must be written in a statically typed language, but cannot be C nor C++ /me glares at Chromium

    The bad news is that I don't currently have enough free energy to help the remacs nor emacs-ng projects, but I am glad they exist

  • varjag 3 days ago

    Allow for user controllable window layout within the frame, objectively the editor's only significant drawback.

    • iLemming 2 days ago

      What are you talking about? Emacs has incredibly good window control. It is in fact so good, people decided to build window managers on top of Emacs - see EXWM. Yes, the customization is complex and very confusing for beginners, but the levels of control are all there.

      • varjag 2 days ago

        display-buffer-alist appeared only in version 24 and is still only a hack to bludgeon the editor into somewhat less insane condition than the default.

        • iLemming 2 days ago

          That was 12 years ago. Are you complaining that Emacs got sane window management "only" twelve years ago? Please don't ever get into Node.js ecosystem, the pace of accretion would make you cry, standing in the shower, rocking back and forth.

          • varjag 2 days ago

            Buddy I started using Emacs at version 1.8, and no display-buffer-alist is not "sane". Just maintaining a stable window arrangement in the frame is not something easily possible.

            • iLemming 2 days ago

              I'm not sure what you exactly talking about, I'm having hard time separating "facts" from "personal opinion" here. I'm not sure what you mean by "stable window arrangement" to be honest. As a practical example I can only think of "jumping between places" feature, where If I, for example to have multiple windows and tabs open in the same Emacs frame (well technically speaking, tabs kinda make separate pseudo frames, but anyway), I currently don't have good mechanism of finding "the place", there's no good way to build "the breadcrumbs path" where you can traverse through all the places visited, Emacs afaik doesn't have good mechanism of finding exact tab/window/buffer/location, I don't know how much of it is related to your idea of "stable window arrangement".

              Overall, I'm personally happy with Emacs window management, it's highly customizable and extensible, it gives you powerful keyboard-centric control, it supports complex layouts, it is deeply integrated within Emacs' vast ecosystem. There are packages like ace-window, winum, winner-mode, golden-ratio, shackle, popwin, eyebrowse, perspective, window-purpose, etc. I don't know what you're complaining about, I guess because I have not seen something even better than that.

    • floren 3 days ago

      god yes please. "Will I get a new window? If so, where will it be?"

      If I could have Emacs with Acme-style window management, that'd be perfect

      • signa11 3 days ago

        this is emacs territory so we have infinite customization via the `display-buffer` primitive.

        see https://www.masteringemacs.org/article/demystifying-emacs-wi... for more information.

        • signa11 3 days ago

          unfortunately i cannot edit the previous post anymore. another _excellent_ resource is this article/video from "mr protesilaos stavrou" : https://protesilaos.com/codelog/2024-02-08-emacs-window-rule...

          he goes by the moniker 'prot' and has tons of very very good emacs information (both on his website, and youtube). always worthwhile to check them out !

          as someone would say, if you like that kind of thing, this the is kind of thing you will like :o)

        • floren 3 days ago

          Thanks for reminding me about this, I really need to dig into it and get some rules in place.

      • skydhash 3 days ago

        After years of vim and windows parkour, I started using Emacs, and while the windows management was a bit irritating at first, I made my peace with it and use them in a more focused manner and rely more on the buffer list. I use register if I need a particular configuration.

        Vim feels like working on a moodboard while Emacs is more a study desk.

        • iLemming 2 days ago

          > while the windows management was a bit irritating at first

          https://youtu.be/1-UIzYPn38s - Emacs: control where buffers are displayed (the 'display-buffer-alist')

        • varjag 3 days ago

          I've been using Emacs for 25 years daily and this is still the thing that I think hasn't been really thought through. Yes there are hacks to mitigate that but there are still many rough edges with them.

  • stormking 3 days ago

    A modern display engine.

  • aeonik 3 days ago

    Instead of making it just an elisp interpreter, make it a generic platform where you can interpret any language and have them with together.

    Make it Programming Language Macros, PLMACS. Kind of life a POSIXs standard. Or the Truffle framework.

    • iLemming 2 days ago

      > where you can interpret any language and have them with together.

      You can have multiple different source blocks in a single Org-mode document. All in different languages, and they can be passing results between one another. e.g., you can run a piece of bash that runs curl, then send the results of it to Python block, where it calculates something, then to Javascript block that uses some npm package and and then send the results to a SQL block that queries a database and generates a report.

    • anthk 3 days ago

      Just use Acme under Plan9port. What you said it's the idea the plan9 guys had under to create a Unix 2.0 based 'Emacs' editor instead of vi and the pseudo graphical Sam.

    • drekipus 3 days ago

      That's bash

      • anthk 3 days ago

        Plan9's Acme, literally. Unix philosophy scripting an editor in and out

  • umanwizard 3 days ago

    I would use a more mainstream dynamic language like python or lua rather than emacs lisp. It has to be dynamic and maintain the flavor of repl-driven development (the whole point of emacs is that it’s one big X repl where today X is emacs lisp). It doesn’t have to be a lisp though.

    • mdaniel 3 days ago

      emacs-ng cites Deno, which speaks to your "more mainstream" as well as some of the sandboxing concerns offered by others https://github.com/emacs-ng/emacs-ng#denojavascript

    • magpi3 3 days ago

      You could also start at the bytecode level so that the specific language itself is less relevant.

    • iLemming 3 days ago

      It feels to me, people suggesting using anything other than Lisp haven't had sufficient, heartfelt experience with Lisps. Give me a Lisp any day, sure, Elisp might not be a best of Lisps, but it's a Lisp nonetheless, there's simply nothing better for evaluating things on the fly, there's no better language for rapid prototyping, for structural editing, for metaprogramming.

      One has to experience the flow, the fluidity, the functional constructs of Lisp to truly appreciate its elegance and expressiveness. Lisp's code-as-data philosophy enables seamless metaprogramming, where code can be treated as data and manipulated with the same ease as data structures. This unlocks a level of abstraction and composability that is unmatched by most other languages. The functional nature of Lisp, combined with its homoiconicity, encourages a declarative and modular programming style, promoting code reuse and maintainability. Once one immerses themselves in the Lisp way of thinking, the flow of writing code becomes a harmonious dance, where complex problems are broken down into simple, composable functions that can be effortlessly combined and transformed. It's a paradigm that fosters creativity and empowers developers to build robust and extensible systems with remarkable ease.

      Sure, Python, Lua, Javascript, etc. They all may seem more familiar, and yet they lack the profound simplicity and expressiveness that lies at the heart of Lisp. While these languages have their own merits and widespread adoption, they are ultimately constrained by their rigid syntax and imperative nature. Lisp, on the other hand, transcends these limitations with its minimal yet powerful syntax, allowing code to be treated as data and data as code seamlessly. It fosters an unparalleled level of metaprogramming capabilities, enabling developers to write code that writes code, unlocking a realm of abstractions and transformations that are challenging or impossible in other languages.

      Yes, very challenging, see the examples of using Hyperfiddle/Electric, here's one: [SpreadSheesh! talk by Dennis Heihoff - YouTube](https://www.youtube.com/watch?v=nEt06LLQaBY)

      When you say "It's one big X REPL... and it doesn't have to be Lisp", it's already conflicting because you need Lisp to have the proper REPL experience. Those non-homoiconic languages that promise a REPL don't actually provide the "real REPL" experience. Their interactive shells are more limited in comparison to the true REPL provided by Lisp dialects, where code and data are seamlessly interchangeable.

      upd: darn, I guess I didn't scroll too far, all the people complaining about Lisp are at the bottom, downvoted and I guess angry because they don't understand why. It's like someone moving from China to US and complaining why everyone refuses to even try Mandarin, after all it's the most widely spoken language in the world, why wouldn't it make sense to use it instead?

      • umanwizard 2 days ago

        Do you have a concrete example of something you can do in a lisp repl like emacs that would be impossible to build into a python repl?

        • iLemming 2 days ago

          > Do you have a concrete example of something you can do in a lisp repl like emacs that would be impossible to build into a python repl?

          This is a challenging question, it's difficult to answer in a short few sentences. One practical example that immediately comes to mind is the advising system of Emacs, where you can modify specific parts of any given function, which isn't easily achievable with Python.

          In a Lisp REPL, you can modify the behavior of the REPL itself on the fly, e.g. advising it to print the execution time of each expression sent to the REPL. The homoiconic nature of Lisp allows us to treat the REPL's evaluation function as data, modify it, and immediately see the results. This level of runtime modification of language constructs is not possible in Python's REPL.

          You can get very specific and start challenging that statement. We can talk about bytecode execution, and how you'd need to modify the bytecode at runtime or alter the interpreter's execution loop, or Python's function object structure, or method resolution order. We can talk about descriptor protocol which handles method binding, we can speculate about JIT complications, thread safety, garbage collection, etc. At the end, it all boils down to homoiconicity. The homoiconic nature of Lisp - Code As Data, Uniform representation, Meta-circular Evaluator, etc., all that makes the difference for the things that aren't realistically achievable in non-Lisp languages.

          That opens up many interesting practical possibilities, like creating interesting DSLs with minimal syntactic overhead and runtime efficiency.

          People love their favorite programming languages for their specific features. They get used to them, it's a matter of familiarity, they get attached to their language of choice. Almost every language book offers you some unprecedented magic with their language. And often programmers look at Lisp as just another programming language, missing the main point about Lisp, which is not one concrete language implementation but the idea as a whole.

          Learning Lisp offers something fundamentally different. It's not just about acquiring a new syntax or set of features, but about gaining a new perspective on programming itself. Lisp provides insights into the nature of code and computation that are hard to fully grasp in other languages. The benefit of learning Lisp isn't necessarily in using it for every project, but in how it reshapes your thinking about programming. It can make you a better programmer in any language by deepening your understanding of abstraction, metaprogramming, and the relationship between code and data. Many concepts that originated in Lisp have influenced modern languages. Understanding Lisp can help you appreciate and more effectively use features in other languages that were inspired by Lisp, and that is a pretty much every PL in the TIOBE list.

          • umanwizard 2 days ago

            I still don’t understand what advising has to do with homoiconicity. When you advise a function in emacs you’re not traversing its code as data, you’re adding some code to run at a predefined hook like :before, :after, etc., and I don’t see any reason why you couldn’t write a python interpreter that also lets you do the same thing. You could also have a repl implemented on top of this interpreter in python itself and advise and modify the running repl — just like you can with emacs.

            So I’m again asking for a specific, concrete example of something you can do in emacs lisp that you couldn’t make a python interpreter do — not just waxing lyrical about how great lisp is.

            • iLemming 2 days ago

              Right, advising itself on the surface doesn't seem to be inherently tied to homoiconicity, here's the concrete example in Elisp, this would print how long it took to evaluate a form.

                   (defun add-timing-advice (orig-fun &rest args)
                     (let ((start-time (current-time)))
                       (prog1 (apply orig-fun args)
                         (message "Evaluation took %f seconds" 
                                  (float-time (time-subtract (current-time) start-time))))))
              
                   (advice-add 'eval-print-last-sexp :around #'add-timing-advice)
                   
              While advising isn't inherently tied to homoiconicity, it is significantly easier to implement and more powerful in a homoiconic language.

              Here's a different (not related to advising) example of redefining core macro, introducing code that "writes code":

                  (defmacro lambda (args &rest body)
                    `(function (lambda ,args 
                                 (print "Lambda called!")
                                 ,@body)))
                                 
              Now every lambda expression will print a message when called.

              To implement something like that in Python, you'd have to modify the parser and complier, alter the runtime, reimplement core language constructs, but most importantly, you will have to change Python's syntax to make all code easily representable as data structures. Which then will become not Python but entirely different language.

              • umanwizard a day ago

                Your lambda example is a fair point, but will that apply to things that have already been byte-compiled?

                • iLemming a day ago

                  I'm not exactly sure what you mean, tbh.

                  • umanwizard a day ago

                    I mean, if a function that uses lambda has already been parsed and compiled, I’m guessing it won’t magically be updated to use the new definition of lambda. Not sure if I’m correct about that.

                    • iLemming a day ago

                      In this case it would't care. Since it's basically redefining what (lambda) means to the Reader. That is where that notorious distinction of Read-Eval-Print-Loop comes to play.

                      1. Read:

                      - In Python, the read phase must parse text into an intermediate representation (AST) that is distinct from Python's data structures. During the read phase, Python using built-in tokenizer and parser, parses its infamous indent-based syntax, handles literals, identifiers, keywords, operators, decorators, docstrings, comments, etc. Finally, it builds an AST.

                      - In Lisp, the read phase produces a data structure (s-expressions) that is directly usable as code. The syntax and the abstract syntax tree are essentially the same thing. Lisp uses built-in Reader - parses s-expressions while handling special syntax elements - quotes, backticks, commas, hash-quotes, handles reader macros, parses numbers strings, other literals, comments. But! No need to build an AST - the code already is.

                      2. Eval:

                      - Lisp can evaluate the s-expressions directly. The code is data, and data is code. That's where macros get expanded before the evaluation, function calls are resolved, symbols are looked up, tail calls optimized, byte-code compilation is available but not mandatory.

                      - Python must compile its AST into bytecode before execution. Python uses stack-based VM, figures out scoping and class namespaces, special forms (if, for, def) handled by specific bytecode instructions. Decorators are applied, reference counting and GC, tail call optimization (if runtime has it, standard CPython doesn't). It always has to compile bytecode before execution.

                      - Lisp macros operate on the code structure directly, allowing for powerful metaprogramming. Python's metaclasses and decorators are more limited in comparison.

                      3. Print:

                      - Elisp's printed representation of data is often directly readable as code. What you see is what you can evaluate. Eisp has built-in circular structure handling, Python doesn't. Elisp's printing is more focused on producing readable/evaluable Lisp expressions

                      - Python's printed representation, especially for complex objects, is often not directly executable code. Python's object-oriented approach allows for more customization through methods

                      4. Loop:

                      The Loop phase in both cases ensures that the REPL continues to accept and process input, making interactive development and experimentation possible.

                      - In Lisp, you can easily manipulate the environment, even the REPL itself, using the same language constructs.

                      - Python's REPL is more of a black box from the language's perspective.

                      • lispm 15 hours ago

                        > Lisp can evaluate the s-expressions directly.

                        Not generally: in compiler-only implementations this is not provided.

                        • iLemming 12 hours ago

                          I think you're mixing up other Lisps with Elisp. In this particular thread I'm specifically talking about Elisp, even though, in retrospect, I should've been more explicit about it and not dropped the 'E'.

                          AFAIK, Elisp is an interpreted language by design and always has the ability to evaluate s-expressions directly at runtime, there's no compiler-only implementation of Elisp. There's native compilation introduced in Emacs 28, but it just adds a layer of optimization, the interpreter still exists and can evaluate s-expressions directly, it doesn't turn Elisp into a "compiler-only" implementation.

                          But yes, there are other Lisps that compile code to machine lang, without an interpreter.

                          Good catch and a fine note, thank you!

                          • lispm 10 hours ago

                            Especially since many compiler-only implementations can evaluate Lisp code at runtime, just fine, even though they don't execute s-expressions in an Interpreter. Thus an compiler-only Lisp can be used to implement Emacs just fine. I used for many years an Emacs on top of a compiler-only Common Lisp.

  • panza 3 days ago

    Many of the non-sarcastic responses here are subjective changes (scripting language, core plugins, alternative control schemes) that will change what Emacs is for other people.

    But I think we can find a lot of agreement around launch speeds, latency, typography and similar.

  • znpy 3 days ago

    I’d keep the possibility to use the ide both in the console as well as in a graphical environment for sure.

    I’m not sure i’d change the scripting language, despite all of its shortcomings it has proven itself way more than enough.

    Maybe better concurrency?

  • faizshah 3 days ago

    Let us write plugins in whatever programming language we want and provide some simple interface like Unix sockets or something for us to communicate with the editor process.

    Instead of making the first class installable extensions plugins create a primitive called modes that encapsulate groups of plugins with extra configurations so that instead of having to pick every plugins for our setup we just pick the most popular javascript or ruby etc. mode and then add a couple of our own plugins on top.

    Add some system that suggests hotkeys based on usage. If I hit l 20 times instead of just hitting f’ to get to the end of the line show a popup. Gamify the key maps and suggest key maps and features even from my plugins.

    Instead of having a package manager for your editor just use homebrew and integrate it deeply into the editor.

    • anthk 3 days ago

      Just use Acme. TCL, Perl, Go, awk... on sockets/files, a la Unix.

  • pton_xd 3 days ago

    Improve performance handling large files and large numbers of buffers. Emacs has been my daily driver for the last 10+ years and yeah perf could use some help. Everything else is superb.

  • aidenn0 3 days ago

    Use Common Lisp instead of making its own mac-lisp like dialect.

  • dataangel 2 days ago

    Static typing, lexical scope, good performance on huge files out of the box, extension sandboxing

  • musha68k 3 days ago

    Rendering performance is still my main gripe and the one most mentioned by vim users I unsuccessfully tried to convert through evil mode.

    • iLemming 2 days ago

      I bet you're talking about Mac. I hate coming back to Mac after using Emacs in Linux. It feels so sluggish. Even on my Android tablet Emacs works faster than on a M1 Mac.

  • tiberriver256 3 days ago

    Build it with emacs

  • ruricolist 3 days ago

    I'd replace the underlying data structure used to represent buffers (https://www.gnu.org/software/emacs/manual/html_node/elisp/Bu...) with something more sophisticated, like ropes or piece tables.

  • dannyfreeman 3 days ago

    Starting with some kind of namespacing solution for emacs lisp would be nice.

  • intellectronica 3 days ago

    Scheme instead of ELISP. Concurrency (Async IO would do).

  • otabdeveloper4 4 days ago

    Emacs is fine, but buggy as hell.

    Their version of Lisp is clearly not suited for any large-scale development. (This trickles down hard into user experience, i.e., lack of parallelism or multithreading.)

    • JadeNB 3 days ago

      > Emacs is fine, but buggy as hell.

      Is this so obvious as to go without examples? I'm no Emacs power user, nor even really an Emacs user, but it certainly conflicts with my understanding of core Emacs.

      • otabdeveloper4 2 days ago

        I don't really know what a "core Emacs" is. It's all elisp scripts all the way down, and elisp is as brittle as bash for writing programs.

    • keyle 3 days ago

          Emacs is fine, but buggy as hell.
      
      That kind of took 180 turn on that one.

      Ship is fine, but leaks as hell.

      • buescher 3 days ago

        As long as I can keep this ship, I will keep bailing.

      • otabdeveloper4 2 days ago

        Bugs aren't that big a deal for users usually though. Also all ships leak, that's not a big deal either.

  • clojureyoureyes 3 days ago

    I'd rewrite in a Clojure-like language

    • iLemming 2 days ago

      I'd trade my dog to have Clojure-like maps and destructuring in Elisp. Comparing workflow with maps in Clojure and alist/plist in Elisp won't get any points to Elisp side.

  • the_clarence 3 days ago

    I would probably just implement vscode but for the terminal. Emacs shortcuts already work by default in vscode for the most part.

    • umanwizard 3 days ago

      None of the main selling points of emacs have anything to do with its shortcuts or using it in the terminal. Plenty of emacs users (including me) rarely or never use it in the terminal. It’s a GUI editor just like vscode is.

      I think this misconception comes from the fact that (1) people often compare emacs and vim, and (2) vim is usually used in the terminal. But emacs and vim are really categorically different things so I think the “emacs vs. vim” meme kinda doesn’t make sense.

    • sshine 3 days ago

      While Emacs is recognisable for its shortcuts, it is hardly a defining feature. Example: Doom Emacs adds Vim shortcuts, and it is still distinctly Emacs.

      I think of VSCode as “Emacs, but JavaScript instead of Elisp.” That’s one thing I would not choose, in spite of the good things VSCode brings to the table.

      • umanwizard 3 days ago

        Can I hit one key combination to edit the JavaScript corresponding to any vscode command, debug it and possibly modify it however I want? If not, it’s not really comparable to emacs IMO.

        • sshine 2 days ago

          That's a fair point.

          What I meant is that the runtime is arbitrarily extensible at runtime.

          But I don't assume that people actually do what you describe.

      • skydhash 3 days ago

        VSCode is notepad with plugins, built upon a web engine. Comparing it to Emacs is a huge disservice to Emacs.

  • worthless-trash 3 days ago

    I'd ask the lem guys.

  • azram 3 days ago

    Nothing

    • I_complete_me 3 days ago

      I too use vim.

      • iLemming 2 days ago

        Hmm, it's weird you forgot to tell everyone that you're also vegan and always recycle, and meditate daily. Guess what? Nobody cares...

  • bitwize 4 days ago

    Build it on top of Guile.

  • Decabytes 3 days ago

    Honestly I think you could go a long way with default evil mode, and updated documentation with evil keybindings in mind.

    • iLemming 2 days ago

      I hope not. Watching the Emacs ecosystem evolving over the years, I'd wish that most things were not default or built-in but came in packages, and Emacs was a tiny, extremely small core. Packages outside of the Emacs core develop faster, evolve better, foster communities around them, have greater flexibility of choice - where to host them, how to license them, how to structure them, etc. Evil-mode, Magit, Projectile, CIDER, etc., they are all great because they were developed outside of the Emacs' core. I can only imagine how Evil+plugins would've slowly decayed with endless email threads on the Emacs-devel mailing list, where RMS would've annoyed everyone asking "why are we trying to build Vim in Emacs instead of Microsoft Word, I've dreamed about WYSIWYG, and you guys are ruining it...".

  • randmeerkat 3 days ago

    Realize that VI was the superior editor, give up on the endeavor, print out the code I had already written for emacs, shred it, then set the shredder unceremoniously on fire.

    For those that downvote me, worth it.

    • kunley 3 days ago

      Strategically thinking, after setting the shredder on fire it will be harder to shred the code of the future emacs clones! :D

      • randmeerkat 3 days ago

        > Strategically thinking, after setting the shredder on fire it will be harder to shred the code of the future emacs clones! :D

        The most realistic future is that emacs begins shipping with a self-shredding feature. C-h s

        • kunley 2 days ago

          Love it already!

    • iLemming 3 days ago

      That just means you have not reached the point of understanding the philosophy of Emacs. Comparing Emacs and Vim with a one-sided perspective like yours is like saying that motorcycles are better than trains. Sure, they both serve the purpose of reaching from point A to point B, but there's a lot more to it than just that. Similarly, Emacs is far more than just a text editor. Vim's model of navigation is an amazing, beautiful, powerful, and pragmatic idea. Have you ever used it anywhere else than Vim/Neovim? You see, the thing is, there's no such thing as a "vim-plugin", and I'm saying this with confidence of a die-hard vimmer. I've tried them all - different ones - IdeaVim for IntelliJ, Sublime Vim plugins, VSCode extensions, etc. All of them are pretty much filled with laughable deficiencies; they are not even shadows of the actual Neovim experience. With one notable exception, and that is the vim-implementation in Emacs. In Emacs, Evil-mode doesn't even feel like an extension, an afterthought; it feels like it's a baked-in, major feature of the editor. More than that, it can do certain things even better than you can do it in Neovim.

      If someone had built a passenger plane with vertical take-off/landing capability, a mere accidental feature of the aircraft that nobody was even supposed to use, I would still respect the heck out of it because the mere presence of it would be proof of ingenious engineering. If you think that "VI is a superior editor than Emacs", I'm afraid you still have a shallow understanding of both.

      • randmeerkat 2 days ago

        > If you think that "VI is a superior editor than Emacs", I'm afraid you still have a shallow understanding of both.

        Thank you for your long and thoughtful prose, so fitting for an emacs user. One day, when you value productivity, might I suggest VI.

        • iLemming 2 days ago

          > Thank you for your long and thoughtful prose, so fitting for an emacs user.

          Are you hinting at the fact that I used Emacs to help me write that? Sure I did. Why wouldn't I use Emacs for writing, if all the tools I need are at my fingertips? I have a thesaurus, spellchecking, Google Translate and search, dictionaries, etymology lookup, word counter, Flesch-Kincaid reading ease tester, ChatGPT, Anthropic and other models, dictation, formatter, and many more. Why would anyone ever exposed to that power willingly part with it?

          > One day, when you value productivity, might I suggest

          What point of "I'm saying this with confidence of a die-hard vimmer" was unclear? I already use both Emacs and Vim - they serve different purpose for me. And trust, me if YOU value productivity, one day you may wake up with realization - Emacs actually vims better than Vim.

          • randmeerkat 2 days ago

            iLemming you clearly know how to interwebs, well met.

            • iLemming 2 days ago

              Look. In our field of software crafting and Computer Science, conflicting ideas and principles frequently arise, especially when balancing competing concerns. We often need to weigh out performance against readability, abstraction and efficiency, flexibility over simplicity, security vs. usability, consistency over pragmatism, etc.

              Yet, it's relatively rare for ideas (especially good ones) to become completely invalidated or rendered totally obsolete. Because ideas often retain their value in specific contexts.

              I already told you my take on the idea of Vim and modality, it's a wonderful, beautiful, powerful, and pragmatic model. Now, Emacs builds on the cornerstone of another incredibly powerful idea - the idea of practical notation for lambda calculus, which is known as Lisp. Lisp probably can be crowned as one of the most important ideas in computer science. It's just hard to think of anything more influential than Lisp. Any programmer who dismisses the idea of Lisp based on one concrete implementation of it is misguided.

              At some point, after many cycles of frustration, amazement, inspiration and awe you will learn to appreciate certain ideas. I'm not selling you Emacs or Vim here - not one concrete implementation of a concept. I'm just trying to tell you - some ideas are worth learning more, before dismissing them as needless or impractical.

              • randmeerkat 13 hours ago

                How do you feel about Clojure vs Lisp?

                • iLemming 12 hours ago

                  You mean Clojure vs Common Lisp or Emacs Lisp? In what way? I like them all. They serve different purpose for me, but in general, I like them.

    • kQq9oHeAz6wLLS 3 days ago

      > For those that downvote me, worth it.

      Nay, quite the opposite; I scrolled down specifically looking for comments like these, because I knew they'd be here. Kind of comforting, really.

  • geocrasher 3 days ago

    I'd give it a good editor.

    • iLemming 2 days ago

      What constitutes "a good editor" in your mind?

      Emacs has an amazingly nice editor, especially for writing in plain language. It even supports right-to-left languages and things like Sanskrit. There are frequent posts in /r/emacs about using it for writing. Many novelists use Emacs for writing, some of them are well-known names - Cory Doctorow, Neal Stephenson, Vernor Vinge, Charles Stross, et al.

      There are a number of nice packages that help you with writing - spellchecking, thesaurus, dictionaries, translation, definition and etymology lookup, LLM integration, export capabilities, distraction-free modes, various text manipulation tools and more.

      The joke that Emacs is an operating system that simply needs a decent editor has not aged well. It's not even funny in the slightest; it's laughable in the face of the joke teller, telling more about them than Emacs and its editing capabilities.

  • lysace 3 days ago

    Use python instead of lisp.

    • ssivark 3 days ago

      There's the Leo editor, if Python's what you want: https://leo-editor.github.io/leo-editor/

    • iLemming 2 days ago

      Dear Cooking Show, I really liked your recipe for the shrimp-avocado salad, and I tried to make it, but since I was out of avocados I just substituted them with potatoes. Also, it turns out I didn't have any shrimp, so I just used some hot dogs I found in my freezer. OMG, this recipe is amazing. You just made my day.

      ---

      That's what using X instead of Lisp to make "a better Emacs" sounds like, okay? Emacs is a Lisp-machine, it's built on top of Lisp, it needs Lisp to be Emacs. Otherwise it wouldn't be Emacs. Like at all. Don't be stupid, stop saying stupid shit like "python instead of lisp"...

      • lispm 15 hours ago

        GNU Emacs is a Lisp implementation with an abstraction layer over the hardware and OS. I would like to reserve "Lisp Machine" to computers with an actual Lisp operating system or emulations of those.

        • iLemming 13 hours ago

          Of course. I understand that calling Emacs "a Lisp Machine" is quite a stretch, but due to the lack of any actual prominent hardware-based Lisp machines these days, I think it is a permissible simplification for the orange-site discussions. Yet it is, indeed, an important clarification, I appreciate it.

          • lispm 10 hours ago

            There are two open source emulators of actual Lisp Machines I would recommend:

            Interlisp-D/Medley: https://interlisp.org

            MIT CADR: https://tumbleweed.nu/lm-3/

            These run an actual Lisp operating system.

            • iLemming 9 hours ago

              These are interesting from historical educational point of interest, but they rather don't have practical use for modern software development, do they?

              • lispm 5 minutes ago

                It's to keep the dream alive.

      • lysace a day ago

        I do understand that for you Emacs is a Lisp development environment first, not a text editor.

        Can you imagine people enjoying the user experience of Emacs while simultaneously preferring languages that are not Lisp?

        • iLemming a day ago

          > I do understand that for you Emacs is a Lisp development environment first

          It's not "for me", it is what it is. Emacs first and foremost is a Lisp machine, with a text-editor built into it, not the other way around, it's not a text-editor that uses Lisp as its configuration language.

          "user experience of Emacs" is to be able to send any expression and sub-expression without any preceding ceremony directly to the REPL. Everything what Emacs does stems from that. No, Python doesn't have the same REPL. Every single stage of it in Python is different. Lisp's Read, Eval, Print, Loop - they all have slightest differences. Those differences are possible because of Lisp's homoiconic nature. Because of that you get Lisp macros, because of that you get advising functions, because of that you can do source blocks in Org-mode that can interact with and modify their own execution environment. Lisp's homoiconicity allows code to be treated as data and vice versa, enabling powerful metaprogramming capabilities. This means you can:

          1. Manipulate code at runtime

          2. Create domain-specific languages easily

          3. Extend the language itself

          In Org-mode, this translates to source blocks that can:

          1. Dynamically generate and execute code

          2. Modify their own content or other blocks' content

          3. Interact with the Emacs environment seamlessly

          This level of flexibility and power isn't achievable in Python's REPL due to its more rigid separation between code and data. While Python is highly versatile, it lacks the deep introspection and self-modifying capabilities that Lisp's homoiconic nature provides, making Lisp uniquely suited for certain advanced metaprogramming tasks and interactive development paradigms.

          So the bottom line is: you can imagine really hard, but it would remain just an imagination, if you want to build something like Emacs - a REPL that has a built-in text editor, you need a Lisp, because non-homoiconic languages DO NOT HAVE exactly same REPLs. Now, do you want me to get seriously pedantic and explain how every step in ReadEvalPrintLoop differs in Lisp and Python?

          • lispm 15 hours ago

            > if you want to build something like Emacs - a REPL that has a built-in text editor, you need a Lisp, because non-homoiconic languages DO NOT HAVE exactly same REPLs.

            I don't think it makes sense. One can build programmable editors in many interactive languages. The language for an editor doesn't need to be Lisp. It could be Python, JavaScript, Ruby, PERL, Forth, ... Typically a form of EVAL or compile/load is enough to do so.

            • iLemming 13 hours ago

              > One can build programmable editors in many interactive languages

              Of course, one can - VSCode is a "programmable editor", no? Emacs is a bit different though, wouldn't you agree? It's rather a Lisp REPL that has a text-editor built on top of it.

              • lispm 10 hours ago

                A Lisp REPL is a user interface, not an implementation.

                The first Emacs wasn't using Lisp at all. Wasn't it literally the Emacs?

                > It's rather a Lisp REPL that has a text-editor built on top of it.

                Just write an Emacs without a Lisp REPL. It can have the same Dired, just written in Python. There is nothing in Dired, which requires Lisp.

                • iLemming 9 hours ago

                  Dired is a file browser, sure, it can be written in anything. But what about something like Org-mode - with all its source-block magic, code execution, etc. etc.?

                  • lispm 5 minutes ago

                    Why wouldn't one be able to implement this in JavaScript, Python, Smalltalk or even BASIC ?

          • lysace a day ago

            Between this and you calling me stupid - twice! I now understand enough about you to ignore you and feel good about that decision. Thank you.

            • iLemming a day ago

              I never called you stupid, I said the things you're saying sound stupid. Try to see the difference.

      • lysace 2 days ago

        Don't be an ass.

        • iLemming a day ago

          What? I'm not trying to, I'm trying to be funny. Sorry if you read it in your head differently.

          • lysace a day ago

            > Don't be stupid, stop saying stupid shit like "python instead of lisp".

            • iLemming a day ago

              Well, that is a stupid thing to say. You probably just haven't yet realized why.

              • lysace a day ago

                You're just so full of yourself, aren't you? You know the one true way to do programming, it's lisp and everyone else is an idiot? This was old before you were even born.

                • iLemming a day ago

                  Now, you're just being rude, I never said things you're implying I did, and I never claimed anything of being "one true way to do anything", I only tried to point out in a humorous way of your uninformed opinion, but I guess you lack basic sense of self-irony. Okay, if you rather remain sanctimonious, stiff-necked "professional", fine. I'm sorry if I hurt your tender feelings and I apologize if I angered you - I promise, my intentions were quite the opposite. Also, you have no idea when I was born, let's not get too personal, okay?

    • m463 3 days ago

      I agree.

      Maybe it's just personal preference, since I think it's easier for me to think in python over lisp (which I've known for longer, but I still fumble through)

      I do think python would make emacs more accessible to a wider audience.

      • iLemming a day ago

        > I do think python would make emacs more accessible

        It would not be Emacs anymore. Emacs is specifically tied to Lisp. Emacs is not a text editor that uses Lisp as the configuration language. Emacs is a Lisp machine that has a text editor built into it.

        An "Emacs-like" editor built on Python might be interesting, but it wouldn't be a "better Emacs" or even "like Emacs", it would be a completely different thing.

        You may dislike Lisp, you may even hate Lisp, but the fact remains unchanged - there is an emerging class of applications that is significantly more difficult to build around non-homoiconic languages. Emacs is one of them. Stop fetishizing your favorite programming language as the quintessence of Emacs. The best one can do is to build a compiler/transpiler to spit out Lisp code, and people have tried that. Yet somehow, in over forty years nobody has succeeded in dethroning Elisp from ruling Emacs.

        • lispm 15 hours ago

          > Emacs is specifically tied to Lisp

          GNU Emacs is tied to Elisp. But Emacs is a much wider family of editors written in a multitude of languages.

          > Yet somehow, in over forty years nobody has succeeded in dethroning Elisp from ruling Emacs

          That might have several reason. Maybe few people are interested to reimplement GNU Emacs in a different language. Like nobody has succeeded in dethroning C from the Linux kernel, using Lisp.

          • iLemming 12 hours ago

            > Emacs is a much wider family of editors written in a multitude of languages.

            Sure, there's Guile Emacs, there's MicroEmacs - both not Elisp-based, still built on top of Lisp dialects; there's XEmacs, Remacs - both still use Elisp, there's also mg which afaik completely not lisp-based, but I don't know how much of it still 'emacs-like'. In general though, GNU Emacs is what people usually mean when they speak about Emacs, unless they're explicitly talking about others.

            • lispm 11 hours ago

              If you say only Lisp can be used to implement Emacs, would you mean a specific Emacs or an editor belonging to the larger family of Emacs-like editors? When I would speak about how to implement "an Emacs", I would include the option to use different programming languages. For example I could imagine that C and Python is a valid combination, even Python alone would be an option. Python can be used interactively, which would be sufficient for an interactive extension language.

              Here is an old Emacs timeline:

              https://www.jwz.org/doc/emacs-timeline.html

              The actual historic Emacs wasn't written in Lisp and was not extensible in Lisp. It was written on top of TECO and assembly. It was extensible.

              The second and third Emacs were both written in Lisp (Zetalisp and Maclisp) and they were completely written in Lisp.

              At some point Gosling wrote an Emacs in C and Mocklisp. Stallman took that one and rewrote it into GNU Emacs.

              We have lots of Emacs variants written in languages like TECO, C, Fortran, ...

              Craig A. Finseth wrote "The Craft of Text Editing: Emacs For The Modern World"

              http://www.finseth.com/craft/

              Chapter Ten of above book describes what Emacs-type means: http://www.finseth.com/craft/#c10

              Extensibility is a general feature and not tied to Lisp or GNU Emacs.

              The book contained a list of Emacs implementations. An newer list is here: http://www.finseth.com/emacs.html

              You can see that there is a multitude of editors in the Emacs category. The list also mentions the implementation and the extension language.

              > GNU Emacs is what people usually mean when they speak about Emacs

              That's a bit sad. It's like saying "Linux" and think that its the same as "Debian Linux". Similar there are a lot of different Emacs-like editors. Claiming that there is only a single way to implement Emacs goes against the evidence that there are a lot of Emacs-like editors, which are not implemented in C + Emacs Lisp, including the original first Emacs.

              I would think that by far the most important Emacs is GNU Emacs, but I don't think its implementation language choice (C + Lisp) is necessary to implement an extensible Emacs-like editor. Also be aware even though GNU Emacs is a popular Emacs editor, there are some people who are using different Emacs-like editors instead. I typically use a Hemlock variant written in Common Lisp and Zmacs, written in ZetaLisp. Both core designs date back many decades, actually even before GNU Emacs existed.

              • iLemming 10 hours ago

                > I typically use a Hemlock variant written in Common Lisp and Zmacs, written in ZetaLisp.

                So, I still can't see how that doesn't prove my point even further. These Emacs variants are based on Lisps, like you just said. I don't see anything "Emacs-like" today that's hugely based on a non-homoiconic language. Please, if you know any editor that allows me to modify the behavior of any given function/procedure/command with the same level of granularity as the advising mechanism of GNU Emacs, I would love to know about it.

                • lispm 10 hours ago

                  Look at the list of Emacs-type editors. Plenty of them were not written in Lisp.

                  > Please, if you know any editor that allows me to modify the behavior of any given function/procedure/command with the same level of granularity as the advising mechanism of GNU Emacs, I would love to know about it.

                  Zmacs did that before GNU Emacs existed. It also allowed ALL parts of the editor to be changed, not just the ones written in Emacs Lisp for GNU Emacs. Remember, the core of GNU Emacs - both the core Lisp implementation and some core editor and UI functionality - is written in C.

                  Btw., on a real Lisp Machine the editor (Zmacs) was not the main user interface. For example on a Symbolics (but also in Interlisp-D), the listener and a file browsers were their own applications. Zmacs in Genera has a Dired mode, but no listener. Also Genera can run multiple Zmacs windows in the same Lisp, running concurrently -> the Lisp supports multiple threads and the applications use that feature.. Something which GNU Emacs can't easily do. It's mostly blocking and single threaded. Something which can't be easily fixed in Emacs Lisp.

                  Run Lisp code in GNU Emacs in the REPL (m-x ielm) and it blocks the UI. That can't trivially fixed and is a major implementation fail of GNU Emacs.

                  Other Emacs-like editors can run multiple things, without blocking the user interface.

                  • iLemming 9 hours ago

                    > It also allowed ALL parts of the editor to be changed

                    Like interactively, without restarts and all? Wow.

                    > That can't trivially fixed and is a major implementation fail of GNU Emacs.

                    Yes, that is a real big, sad flop.

  • sno129 4 days ago

    Write Vim instead. /s

    • iLemming 11 hours ago

      Emacs can perfectly emulate Vim already and even do more than Neovim ever could.

  • abe-101 3 days ago

    I wouldn't. I just used vim

    • iLemming 2 days ago

      You could use MS Word of Photoshop if you want, we couldn't care less.

      We're not talking here about a mere text editor, we're discussing a Lisp machine with level of extensibility and programmability deeply ingrained into its design, something that Vim or Sublime or any other traditional text editor can never achieve.

  • peter-m80 4 days ago

    Not using lisp

    • vincent-manis 3 days ago

      If I were rewriting Emacs, I would not replace its language with Python, Lua, or Cobol.

      I don't like those languages, and I have just as much right to say that as the people who don't like Lisp.

    • iLemming 2 days ago

      - Can you not put any veggies in the salad?

      - What? Okay, so fruits, berries?

      - No, no, no fruits either.

      - Hmm... what about croutons, nuts, maybe sunflower seeds?

      - No, just use meat. I like meat. Just make it with a bunch of meat pieces, alright?

      - Well, that is not a salad...

      > Not using lisp

      Don't you folks realize the imbecility of such statements? Emacs is a Lisp machine that allows writing and loading custom extensions based on Lisp! This level of extensibility and programmability is so deeply ingrained into Emacs, specifically because it revolves around Lisp. Emacs wouldn't be possible without Lisp.

    • m463 3 days ago

      why the downvotes? This is a reasonable point of view.

      I sometimes think using lisp for a language is a little like trying to implement comments within json data.

      • iLemming 2 days ago

        The downvotes are because "this reasonable point of view" is also an ignorant one.

        Emacs just cannot be Emacs without Lisp. Emacs is a Lisp machine; it is tightly integrated with Lisp and needs Lisp to operate. Lisp is at its core principal model.

        There are a number of different types of applications that are significantly more difficult to achieve with a non-homoiconic language; check out Hyperfiddle/Electric, there are some videos with demos. Why do you think there were so many attempts to re-create something like Org-mode, yet none of them were hugely successful?

        For starters - the Lisp REPL has some significant differences; it just doesn't work the same way as a REPL in, e.g., Python. In Lisp, you can send any piece of code without any prelude or ceremony directly to the REPL. That REPL instance can even be on some remote computer, like a spacecraft millions of miles away (I'm not making up this shit, NASA did it at some point)

        Anyway, Emacs is Emacs because of Lisp, not because someone on a whim decided to use Lisp instead of, I dunno, Pascal. Trying to build Emacs on top of some non-Lispy language is futile. It won't be Emacs. Sure, it might be to a certain degree even better, but it won't be even "like Emacs".

  • sva_ 4 days ago

    Not using Lisp would be helpful

    • volemo 4 days ago

      Actually, I love Emacs for its Lisp! Yes, Emacs Lisp is not the best Lisp out there, however, IMHO, it's miles ahead of VimScript. If I were really to rewrite Emacs, I'd use some modern Scheme.

      • samatman 3 days ago

        Fennel is a better Lisp than elisp. Neovim is extensible, and to a large degree written in, Lua, which the target language of Fennel.

        Most developers do not like writing Lisp. That's just a fact, slamming the downvote button won't change it. I am not among those developers, I like writing Lisp, but most, flatly put, do not.

        So by choosing Scheme you are competing with a remarkable number of little-used editors which can be extended in Scheme or Common Lisp, as well as Emacs, far and away the top dog in the extensible-in-Lisp-editor niche. Neovim has achieved the best of both worlds, because it can be extended in a rather nice Lisp, and also in Lua, which, while some find the quirks of the language annoying, is at least Algolic in structure, matching the mode of thinking and writing used by the vast majority of devs.

        • iLemming 2 days ago

          > Neovim has achieved the best of both worlds

          No it has not. Fennel doesn't have the same level of integration into Neovim, like Elisp has in Emacs. Emacs is essentially a Lisp interpreter with a text editor built on top of it. This tight coupling allows Elisp to interact with and modify every aspect of Emacs, providing a level of customization and extensibility that is difficult to replicate with external languages.

          While Neovim's approach with Lua and Fennel is commendable, it is unlikely that these languages will achieve the same level of seamless integration as Elisp within Emacs.

    • iLemming 2 days ago

      Then it wouldn't be Emacs. You're thinking of whatever, it could be a real nice picture in you head, whatever that you're thinking of, is not Emacs. Something like Emacs is not possible without Lisp.

  • ac130kz 3 days ago

    If I leapfrog over my generally cold attitude towards Lisp-like languages and my habit of Vim keys, the main problem is Emacs's sluggishness, even if it is natively compiled. Neovim fully packed with plugins, LSPs, settings and etc without lazy loading (!) is so much faster.

    • iLemming 10 hours ago

      And? GIMP is too, much faster to start than Photoshop, yet there are a number of things for which sometimes you just need the heavy cavalry.

      I was doing some API testing today, I pressed a key, then a snippet expansion system added something like this into my notes:

            #+begin_src http 
            GET http://localhost:5003/api/health
            #+end_src
      
      I ran the snippet, it sent the request and it failed.

      I realized that I needed a token. It is stored in an env var - not very secure, but it's okay - I'm not testing the prod endpoint. I just had to change the header into this:

          #+begin_src http :var token=(shell-command-to-string "echo $MY_TOKEN")
          GET http://localhost:5003/api/health
          Authorization: Bearer ${token}
          #+end_src
          
      I ran that, and Emacs picked up the env-var, fed that into the snippet, sent http request, got me some results. Then, I changed the endpoint to get some more data, I realized that I would like to examine it closer. I could've done this in Python, Javascript, any other language, even Elisp, but I know Clojure, it's good for data manipulation - so I chose that. I just had to feed the http request results to another block in Clojure. I spun up a Clojure REPL, went through the data, looked at the results, typed some Clojure data manipulation functions, right there where my notes were, ran them against the data, added some more notes - documenting my findings.

      I've tested some more endpoints, got some unfamiliar http error codes, so I just typed directly in my notes "RFC 2616", Emacs was smart enough to recognize what that was and it opened the RFC document, where I searched for the error code, read about it, refreshing my knowledge.

      Then I found the Jira ticket number in my yesterday's notes, copied over to my notes of today - Org-mode has a nice way of organizing daily notes in so-called date-trees. It's just a plain string - "TDL-26478", and once again, Emacs was smart enough to know what that was, I was able to read the description of the Jira ticket, without switching to the browser, without opening any pages, right there, from where I was composing my notes.

      And this is all within less than an hour. I was able to send http requests, analyze results, study relevant RFC document, work with Jira, all that while taking extensive notes, without opening a single web-page, without typing a single command in the terminal, all that done inside Emacs. Emacs basically within less than an hour in a single window was able to substitute for me - a note taking app like Obsidian or Notion; API client like Postman; Interactive computing platform like Jupyter; Project management client for Jira; RFC documentation site; Web-browser and the Terminal app. So tell, me which one of any of these activities do you normally do in Neovim? And btw, this is not even remotely "esoteric" stuff I do in Emacs. This is just an ordinary Tuesday for me.

  • EasyMark 3 days ago

    I’d get rid of the text editor and swap in neovim or hx code as a mode, I’d chuck emacs lisp and use Common Lisp instead, I’d definitely keep org mode and ditch old stuff like mail and news reader as core and let them be add ons written in CL . Rewrite it all in rust. That’s probably enough for today.

    • celeritascelery 3 days ago

      What advantage would you get by rewriting it in Rust?

      • anthk 3 days ago

        Against CL, maybe speed, but SBCL has native compilation.

        Also, with Lem you don't have to care about Rust. Just keep coding CL to achieve anything with a REPL. You don't have to wait weeks to recompile.

  • dvh 3 days ago

    Don't use lisp. Normal people don't like it, it looks weird. I wonder how many projects failed because they were lisp. Normal people: Visits a project page. Sees it's a lisp. Closes page.

    • iLemming 3 days ago

      Don't use Math. Normal people don't like it, it looks weird. I wonder how many projects failed because they wanted to use a lot of math notation. Normal people: Visits a project website. Sees it has equations and formulas. Closes page immediately.

      That's how it sounds to me. Dismissing Lisp solely based on its syntax (that you're unfamiliar with), is equally irrational as rejecting projects that incorporate mathematical notation.

    • vincent-manis 3 days ago

      I am proudly not-normal, in that case.

    • neilv 3 days ago

      Parentheses scare away anyone who shouts "bro!" and fist-bumps each other, before they can insist "the first thing Emacs needs is a package manager, to hide code as much as possible from casual users" (missing half the point of Emacs).

      • shawn_w 3 days ago

        Emacs has a package manager...

        • neilv 3 days ago

          And consequently a lot more friction to users becoming extenders.

          • iLemming 3 days ago

            "A friction" you say? You can run Emacs, open a scratch buffer and extend it right away. You don't even have to save the damn code, you can try it out immediately. Folks complaining about Emacs being hard without even trying to understand any Lisp, is on the same level of whining about how web-development is so much harder compared to building shit in Squarespace (or something), only because you can't figure out HTML, CSS and Javascript.

            • neilv 3 days ago

              Compare to when you'd go to use an add-on, and it would be one text file, right on your screen, and you would think:

              . o O ( hey, I get some of this, and I can just start tweaking it here... )

              • iLemming 2 days ago

                You clearly don't know what you're talking about. You simply don't argue over customizability of Emacs, nobody does, because they know it's futile. If you think anything else has even some slightly better ergonomics to extend the thing, you just have not seen the bonkers level of extensibility what's possible with Emacs.

                In Emacs, you can seamlessly integrate a function from a third-party package, say, a command that fetches a url, parses it, performs processing, and displays the results in a browser. Remarkably, you can modify it to send the results to an LLM or another function instead, without altering any other aspects. This level of granular control is complete bananas and only possible in Emacs. For VSCode, you'd likely need to create a new extension, while in Vim, you'd have to rewrite the entire function. Emacs, on the other hand, allows you to precisely specify and override only the desired part of the function. And once again, you don't even have to save a damn file to try it out.

                So, yeah, I don't have to compare it with nothing. Nothing else comes even close.

                • neilv 2 days ago

                  I think I wasn't clear about what comparison I was talking about.

                  I've made some Emacs extensions, the public ones of which are at: https://www.neilvandyke.org/emacs/

                  My point was that I see a lot of people now who aren't getting the advantage that I had, of seeing "here's some Emacs Lisp code that does X", right up in their face, from the start, and constantly.

                  So they have more friction, to even knowing what Emacs Lisp looks like, and knowing how close they are to extending Emacs themselves.

                  • iLemming 2 days ago

                    I'm now utterly confused, even than before. From the start I thought you were saying "Emacs is hard to extend [for a newbie]", or something like that, and I've been arguing that it is not. Now I'm not sure what you're talking about at all - all the packages anyone uses come with their source code, the body of any function is a keystroke away.

                • BeautifulSynch 2 days ago

                  I mean, it would be really nice if we didn’t have to drop into SVG or XWidget to mix text with GUI elements…

                  But agreed that Emacs is more user-extensible than all the other options presently out there, purely from how easy text-oriented extensions are.

                  • iLemming 2 days ago

                    Sure, yes, a graphical layer would be nice, I would love to be able to draw some arrows and other elements in some sort of an overlay, something like DrRacket does. And yes, better integration with an actual web browser would be splendid. I would love that.

    • tightbookkeeper 3 days ago

      And how would that make emacs better?