7 ms·
Buttery smooth Emacs (2016)
- jwr 8y agoI was planning on taking on porting Emacs to the iPad, given that it's a fantastically fast, light and low-power modern portable computer. But reading this gave me pause, I'm not sure I can dedicate as much time to this as it seems will be necessary...
- deleted 8y ago[deleted]
- kickingvegas 8y agoIf you’re willing to give up local editing, Blink.sh/mosh + tmux + emacs/emacsclient on a remote host has done the job for me.
- jwr 8y agoNo, Blink does not work for Emacs. This is a common misunderstanding: a serious Emacs setup will use multiple modifiers (in my case, I need at least Shift, Control, Meta/Alt and Super, preferably also Hyper). My Mac's command key is mapped to Super in my native Emacs. My Emacs as an IDE is basically unusable without the Super modifier. As there is no way to get the additional modifiers through Blink, this is a non-starter. Additionally, the terminal is a bit too slow, and there are a number of other issues (for example, remapping CapsLock to Control kind of works, but there is a small delay, so you get missed keystrokes sometimes). So, while I use and love Blink, it does not help with Emacs at all.
- sedachv 8y ago> Meta/Alt Meta and Alt are two separate modifiers, so if you get a JIS Japanese layout keyboard (QWERTY with extra modifiers), you can have Alt as a separate modifier, at least in X11, which has enough mod bits (mod1 through mod5) to cover everything. Handy for quick input of APL, Greek, etc. Unicode characters.
- vanzorn 8y agoHow well does it handle chords? I had a heck of a time covering a lot of my common key combos using a bluetooth keyboard on an iPad pro. Would love to know if anyone has a good terminal solution for emacs, (ideally kickingvegas' blink.sh/mosh + tmux) ... I returned to XWindows via WSL (Ubuntu 18.04) + VcXsrv for emacs daily use.
- kickingvegas 8y agoBlink.sh has support for swapping caps and control, which goes a long way for the chords I use in emacs. Not all the meta keys are supported if you’re looking for that, but esc is handled fine.
- tosh 8y agoI have a similar setup at the moment (without tmux). One thing I noticed w/ mosh was that copy pasting an input from advent of code (a few hundred lines iirc) caused mosh (?) to hang and I had to restart blink. When I tried copy pasting via ssh instead of mosh it worked. Any idea why this might be (I’d be curious if that was to be expected re how mosh works or whether it might be fixable) and alternatively how I can work around it (instead of fetching the content from a web page via the remote server?).
- kickingvegas 8y agoPossible workaround: create a new Blink shell and paste clipboard via cat > file. Then scp file to the remote host and import into emacs, if scp works. Another approach is to use iCloud sync to move the file over if the remote has it. Note that pasting via cat > file will not echo your clipboard. Don’t worry, it’s there.
- tosh 8y agoty!
- eigenspace 8y agojust use ish[1]. emacs mostly works on it now totally local to the iPad! If there are still things not working I'm sure a couple PRs would be a lot less work than your original plan. [1] https://github.com/tbodt/ish https://github.com/tbodt/ish
- leoc 8y ago> I was planning on taking on porting Emacs to the iPad I thought that was impossible anyway, given Apple's prohibitions on both GPL code and software runtimes in iOS apps? However I suppose Emacs could be sideloaded onto jailbroken iPads.
- jwr 8y agoWhat exactly is impossible? I can run any software I want on my iPad. No need to jailbreak. Just get Xcode and enjoy the freedom. Who said I need to upload it to the App Store? (as a side note, these prohibitions seem to have been relaxed in recent years)
- xte 8y agoI tried Emacs via various hacks on Android... Mostly to have org-mode there... With a touch only UI it's not usable. With a physical keyboard I see ZERO reason to choose such crappy OS instead of a small ultrabook...
- Wildgoose 8y agoCheck out the Gemini PDA. It's an Android mobile phone with a full keyboard. I have (and can recommend) the first version, but there is a new version in the works right now, the "Cosmo Communicator": https://www.indiegogo.com/projects/cosmo-communicator#/ https://www.indiegogo.com/projects/cosmo-communicator#/
- bitwize 8y agoGreat to see that the dream of the Nokia Internet Tablet lives on.
- xte 8y agoThanks for the link, many try to promise such kind of "portable computer" but always fail so I do not think we will never arrive at such... Also I do not want Android or other crappy OSes, I want a damn real OS, that I can use and manage... Honestly even if I dream such kind of devices I know rational that I will not really need them: I work/live in fixed place, I do not want to be nomad (well, If being nomad means with a starship around the universe maybe but not in the way I can have now), I do not want to "work from a beach" or on top of a mounting after a good climbing trip. I consider such model as modern slavery vested with a dummy shiny dress... I'm a person, not a Ford-model human robot that voluntary tie myself to a device controlled by it's vendor.
- bitwize 8y agoEmacs on Termux with Hacker's Keyboard is pretty usable. I've written (small amounts of) code with it; for Org note taking it will be fine, if not ideal.
- xte 8y ago
- quotemstr 8y agoI've been meaning to port it to Android too. It's really not that bad. It's a great, easy-to-hack system for porting.
- jlarocco 8y agoFWIW, I've used Emacs for a long time (i.e. long before this article was published) and don't recall it ever flickering. Not to say it didn't, or that it wasn't a problem for the author, but he's exaggerating a bit when he says it flickered all the time.
- swolchok 8y agoHe doesn't say it flickered all the time for everyone: > The amount of flicker you actually see depends on things like whether redisplay optimized the last update, your video driver, and the purity of your soul.
- gnulinux 8y agoI've been using emacs last 15 years and I still do. Can't seem to remember any flickering... Just a data point.
- xte 8y agoFew time I see casual flicker (EXWM, nvidia, NixOS with compton)... Oh nothing really annoying! I have far more annoying problems with floating windows and casual (newly introduced) bug that "lost" my physical screen size forcing to restart X to recover...
- ngcc_hk 8y agoA total readable programmer horror story. Unusual such a good writer. —- The idea of an old architecture can still hack to work explain the genius of chinese in china. Living in a modern worl with all those new idea like democracy and free trade on the last 30 years or 200 years, you can still live and intermix whilst creating genetic modified baby and reedy are 1 million people in concentration camp at etc. I think Emacs could be a good model of understanding how old meet new, how one (worldview) beats the Multiverse we are in. —- Just need to sell emacs to African or Facebook to use the same old and successful model.
- salutonmundo 8y agoDon't you dare write about emacs on Facebook! ;) (At least it works without JS.) Choice of platform aside, good article.
- mapcars 8y agoDoes it work without JS? I had to turn it on to read..
- salutonmundo 8y agoWorks for me with NoScript enabled in Firefox. (It even works in emacs! https://i.imgur.com/NHI7Hh2.png https://i.imgur.com/NHI7Hh2.png)
- rhinoceraptor 8y agoAt least according to The Social Network, Zuck is an Emacs hacker...
- kkylin 8y agoLast time this showed up: https://news.ycombinator.com/item?id=12830206 https://news.ycombinator.com/item?id=12830206 And for anyone else using Emacs on a Mac: 1. I use the plain vanilla GNU Emacs from here: https://emacsformacosx.com/ https://emacsformacosx.com/. It does flicker from time to time, but it doesn't bother me. 2. Some Mac users seem to prefer this: https://www.emacswiki.org/emacs/EmacsForMacOS https://www.emacswiki.org/emacs/EmacsForMacOS It's supposed to be flicker-free, among other things, but doesn't play well with MacOS native fullscreen (which I like), at least the last time I tried it.
- __lm__ 8y agoOn Mac I use the emacs-mac port by Mitsuharu Yamamoto: https://bitbucket.org/mituharu/emacs-mac/overview https://bitbucket.org/mituharu/emacs-mac/overview which, in my opinion, works well. It can also be installed via brew (from source) or brew cask: https://github.com/railwaycat/homebrew-emacsmacport https://github.com/railwaycat/homebrew-emacsmacport
- kkylin 8y agoSorry, that's the one I meant to link above. Thanks for putting it up.
- dilap 8y agoSecond vote for emacs-mac here. It's really good.
- sn41 8y agoGNU Emacs works better for me, since I use darkroom mode and fullscreen. It looks nice, and is useful to focus.
- schpaencoder 8y agoI just use 4coder instead
- Koshkin 8y agoNon-free, closed source.
- pietrasagh 8y agoI use emacs and vim quite rarely, only when I see potential benefit of it. Both have some amazing features but also seems to be locked in stone age on IT. In my opinion this is most deterring for new user - not "steep learning curve". I wonder why they refuse to open their eyes to current (or at least 2000's) state of technology. They cling to ancient foundation of their programs as something unmovable and unchangeable. This just looks like appeal to tradition. Or they are total nerds that don't care about reality ;-)
- dmortin 8y agoThey are not against change, but someone has to do the work and it's a pretty big job rewriting the display internals. Also, it has to support terminals and various OSs, so it's not like it's only the matter of slapping a graphical UI on it.
- bch 8y agoWhat features or properties would you give them to pull them out of “the Stone Age”, and to what benefit?
- anthk 8y agoI don't care about reality. I don't use Emacs today, (I use nvi), but I had a lot of respect of what could I do with few MB of RAM compared to monstrosities today such as Atom, Slack and Sublime Text.
- TickleSteve 8y agoSublimeText is not a heavy monstrosity at all, its really very lightweight. Certainly not in the category as Electron based apps.
- anthk 8y agoFunny enough Emacspeak for the blind totally owns any new GUI technology. They can do everything from inside: IM, web, news, coding, playing music, reading ebooks, MUD's, check the mainstream news... https://tvraman.github.io/emacspeak/applications.html https://tvraman.github.io/emacspeak/applications.html Your reality and bullshit applications such as Electron based bloatwares are a bad joke against disabled people.
- xte 8y agoIMO any "old enough" and complex enough software suffer some kind of "age&complexity" problems... No matter how you design it, unix choose simplicity and we see that today no real unix exists anymore (yes, they do exists per name, but in fact they do not follow unix principles), ITS, Emacs, LispM, Alto, ... choose integration and completeness and except Emacs they are essentially dead... Modern software try to choose modularity and if you find a modern complex enough software you know well how messy pachyderm is... Personally I choose (recently) Emacs as my main computing environment because even with it's many problems (there are and recent evolution solve some and add others) it's the most effective computing environment I have ever found. So in conclusion I dream a "modern Emacs" with an EXWM that play nice with any kind of GUIs (it gets a bit worse recently for floating windows or floating windows apps change for the worse I do not know exactly), I dream a damn coherent and complete MUA instead of my actual super-spaghetti-code mess mix of mbsync+notmuch+afew+homegrown crappy scripts + ... just to have a damn good modern and efficient email solution NO ONE, web(cr)app(y) UIs included seems to provide... I dream a GuixSD in org-mode in my own personal config so I have an "my_desktop.org" that contain anything from OS to Emacs config and I can export, change, replicate it in a snap... But that's a bit of a dream for now. New nice stuff arrive (doom modeline is really nice, for instance) but change the entire ecosystem, perhaps re-writing it in Guile Scheme... Well It's unlike to happen more than a timid POC by few smart guys...
- benj111 8y agoI'm trying to parse your first paragraph. Isn't Unix entirely about modularity? And I suppose you could argue that emacs is a (os like) substrate that enables modularity on top of it. Theres an old joke, emacs is a nice OS, only lacking a decent text editor. Or are you referring to the actual code itself?
- jrockway 8y agoI think he's just saying that the Unix philosophy of hundreds of different programs that communicate with pipes lost out, for him, to everything in one address space communicating with data structures, which is what Emacs is. Emacs was derided for being the anti-Unix. It's a text editor... but it has a shell, and a calendar, and reads email? CRAZY. WRONG. But in reality, the Unix way is showing its age and Emacs was a solution ahead of its time. Emacs as a computing environment is remarkably consistent across platforms. Say you write code, commit to a git repository, and run shell-like commands. Your Windows computer will look exactly like your Linux box if you use Emacs with magit and eshell for those operations. I personally kind of fell out of using a lot of Emacs's extras, and am constantly cursing the inconsistency between platforms. But, to some extent, Emacs has failed even in that regard by depending a little too much on the host OS. As far as I can tell, there is no binary I can download for Windows that will let Emacs spell check anymore; the last time someone compiled aspell was in the early 2000s and the latest version of Emacs explicitly checks for that binary and tells you you can't use it, providing no alternative. The failure is not in packaging this for Windows, of course, but rather in allowing the OS to provide the spell checker. That should just be a lisp package! But alas, it is not. (You will also find this in other things. M-x rgrep is a favorite of mine on Unix-like systems. But on Windows, find.exe is not quite the "find" that find | grep is looking for, and it's kind of a pain to get your path setup to find the Unix version of find while in Emacs, and still let native windows programs get find.exe included with Windows.) However, for those ambitious enough to decide to implement the functionality in pure Lisp... you get "write once run anywhere" which is quite enjoyable. (And was a thing before anyone ever coined the phrase "write once, run anywhere".)
- olvar_ 8y agoDoes this means that Emacs will now be usable on remote desktops such as x2go? It tends to close by itself and, if I remember correctly, it was related to some redrawing issue that, I hope, could be solved by this.
- jeffrallen 8y ago> The authors (mainly RMS, whose present sanity reflects this effort) intended redisplay to be used on text terminals over slow links. The best quote in this article.