News for hackers. Stuff that matters.
Re:Emacs 26.2 Released by mrspeaker on Friday April 12, 2019 @02:36PM (#19647730)
I only just understood Emacs about a year ago, despite being a nerd for at least 30 years. I like to think I don't have too many regrets in life - but I'm kicking myself for not realizing what Emacs was way back then - or at any of the times I've tried it out in the past (writing it off as "a text editor")!

Never too late though, and on the plus side I've now got decades of hidden Emacs goodies still to discover!

Re:Emacs 26.2 Released by zikzak on Friday April 12, 2019 @02:44PM (#19647804)
I am excited for you but that "journey of discovery" is way, way too addictive for me. I find myself chasing edge case requirements in my config rather than getting work done.

To each thier own, of course!

I still use Emacs when I ssh into my vps and, if I want primarily on Windows doing dev if Visual Studio, would likely use it for everything (as I did back when I was primarily on UNIX systems). Just writing this makes me think "maybe I'll install it on Windows on more time".

The core issue for me is context switching between Emacs and VS. Even with various keybinding tricks it is always awkward.

Best of luck on your journey with Emacs. Do it for me! :)

Re:Emacs 26.2 Released by Arelius on Friday April 12, 2019 @07:09PM (#19649850)
I setup the VS Emacs bindings and then always bind C-X C-E to open current file/line in Emacs from VS. With that I get along pretty well combining VS and Emacs.
Re:Emacs 26.2 Released by stevenwoo on Friday April 12, 2019 @07:42PM (#19650030)
Are you using one of the VS Emacs bindings available in the library or a custom one? I've found all of the most popular ones to not be good enough to use VS like Emacs in Windows.
Re:Emacs 26.2 Released by Arelius on Tuesday April 16, 2019 @12:01AM (#19671037)
The MS provided Emacs Emulation. You have to jump through some hoops to update it for 2017. It's not perfect, but it gets me close enough until I need to open in Emacs.
Re:Emacs 26.2 Released by TypingStuff on Friday April 12, 2019 @04:56PM (#19648891)
+1. I recall thinking it was a text editor with inferior key bindings to vim, and with a bunch of unnecessary weirdness.

I'm glad I took the time to investigate this discoverable interactive programmatic keyboard-oriented UI platform, that also happens to have a great editor (evil).

A uniquely empowering tool for programmers.

Re:Emacs 26.2 Released by mrspeaker on Friday April 12, 2019 @05:08PM (#19649003)
I've gone all in, I'm in for life. Emacs has already deprecated at least a dozen apps, web apps, and websites I used to frequent. I'm starting to despise any other software...

...so when does someone teach me the secret handshake?

Re:Emacs 26.2 Released by oska on Friday April 12, 2019 @07:16PM (#19649896)
Mind sharing some examples of what Emacs has deprecated for you?
Re:Emacs 26.2 Released by TeMPOraL on Saturday April 13, 2019 @03:14AM (#19651517)
Not OP, but: e-mail client, calculator, calendar app, TODO list app, terminal app, file browsing app, invoicing app, Jupyer notebooks (org mode can do you better), Git client and - obviously - text editor with syntax highlighting.

Some people even replace their window manager with Emacs (see: EXWM), but I'm not ready for this just yet (I run stumpwm now, which is a tiling WM written in Common Lisp, so it's just another lispy environment with similar levels of live interop).

Re:Emacs 26.2 Released by mkl on Saturday April 13, 2019 @08:17AM (#19652561)
> Jupyter notebooks (org mode can do you better)

That seems pretty far-fetched. Very few of the things I use Jupyter notebooks for seem possible in org mode.

Re:Emacs 26.2 Released by TeMPOraL on Saturday April 13, 2019 @08:55AM (#19652748)
I'll bite. Name some things you believe are impossible. You may very well be right, but myself I yet haven't found a thing for which I wouldn't prefer Org Mode (except maybe that Github renders .ipynb files nicer than .org).

Org Mode can execute blocks of code in any language you can hook up to Emacs, correctly handling sessions if language supports them. Org Mode document itself can serve as a glue for exchanging data between different runtimes if you're using multiple different languages in a single document. Literate programming capabilities let you include other source blocks or even their results as code. Emacs can display images inline, and has some capability for UI widgets (though I haven't use it in org-mode context). The kind of Jupyter notebooks I've seen in the wild, I can reproduce in Org Mode with ease.

Re:Emacs 26.2 Released by mkl on Saturday April 13, 2019 @10:59AM (#19653354)
Well, according to my understanding, here are some things I do with Jupyter notebooks that org mode can't match: Dozens of inline interactive plots, including animations, 3d displays, generated SVG, embedded Javascript animations with widgets controlling them, proper formula formatting in code output and prose, etc. Things I have begun work towards include inline display of generated PDFs, and inline drawing widgets (including stylus pressure) that provide data for further computation and 3d display.

Simply not being browser-based means org mode has an incredibly steep uphill battle to even get close - the ecosystems Jupyter can tap into are vast (browser and native, language agnostic), and anything interactive is almost certain to trail behind.

I'm happy to be corrected, but I spent a while researching org mode's capabilities in this area earlier, and everything I found looked more primitive and clunky than what Python and Sage could do as long as 10 years ago.

Re:Emacs 26.2 Released by TeMPOraL on Saturday April 13, 2019 @11:21AM (#19653491)
I concede the point. I'm not aware how one could embed a webview in Emacs buffer, and without this you won't get animated/interactive plots.

My experience with Jupyter was limited to static plots so far (I did plenty of interactive work in ObservableHQ though), and Emacs can handle those well.

Thanks for clearing that up for me!

Re:Emacs 26.2 Released by michaelmrose on Saturday April 13, 2019 @01:30PM (#19654443)
Emacs can now actually embed a webkit view.
Re:Emacs 26.2 Released by mkl on Saturday April 13, 2019 @07:36PM (#19656492)
What would happen if you embedded say 100 of them in the same document? I think doing it the other way around, Emacs in webkit/browsers, is the only feasible way to do it. I'm sure someone has tried that, but it doesn't seem to be adopted yet.
Re:Emacs 26.2 Released by aerique on Saturday April 13, 2019 @09:45AM (#19652972)
EXWM is good fun. At the moment I'm using it on most of my machines but i3, StumpWM and EXWM are pretty interchangeable for me.
Re:Emacs 26.2 Released by chombier on Saturday April 13, 2019 @03:38AM (#19651611)

  M-x secret-handshake
Re:Emacs 26.2 Released by geekone on Friday April 12, 2019 @07:34PM (#19649991)
Mind sharing your config? :)
Re:Emacs 26.2 Released by agumonkey on Friday April 12, 2019 @09:13PM (#19650440)
have a go at the Pharo MOOC, pharo is a smalltalk descendant, it's an emacs like experience but even more regular
Re:Emacs 26.2 Released by plg on Friday April 12, 2019 @06:53PM (#19649762)
Most useful things you’ve discovered?

Best resources you’ve used to discover things?

Re:Emacs 26.2 Released by truncate on Friday April 12, 2019 @08:28PM (#19650243)
I moved from Vim work roughly 6 years ago. I think Magit was the most mindblowing discovery I made after the switch. It is much more common now, and there is even a Vim equivalent I hear. I can't imagine using Emacs (or any editor) without Magit.

`org-mode` and `org-agenda` is pretty cool and I wish I could use it, but I just gave up trying to configure and integrate it with my calendar, multiple devices and what not.

`shell-pop` is incredibly basic and useful to pop up terminal at bottom. Trying to get my popup windows to show up where I want them using `popwin` and `shackle` (still WIP, as it's far from perfect).

There is `lsp-mode` for Language Server, which makes the auto-completion and code-browsing far better. I was super surprised by how well `dumb-jump` worked in most cases (I mainly used that for C++).

I usually discover things by looking at random Emacs configuration. IIRC there is a repo on Github which keeps track of popular configuration out there.

Re:Emacs 26.2 Released by mark_l_watson on Saturday April 13, 2019 @08:02AM (#19652479)
When I worked managing a machine learning team I really relied on org-mode to keep myself organized. I didn't have a multiple device problem because I just had org setup on my work laptop.

When I 'retired' a few weeks ago I tried org-mode in a dropbox folder. Works great from my Linux and macOS laptops but iOS is a nuisance: I can read notes from the dropbox app and edit them with Textastic, but this is not 'ready at hand' tooling.

Since I 'retired' I am doing much more of my personal coding in Common Lisp and Haskell which means more Emacs use (although I also have VSCode set up for fantastic Haskell and Python dev experiences).

I need to take another look at Magit. I replaced org-mode with all-in use of G Suite (really enjoying functionality, high productivity, and security, cringing a little on privacy issues).

Re:Emacs 26.2 Released by tra3 on Monday April 15, 2019 @12:00PM (#19666266)
Take a look at beorg for iOS, I haven't fully explored it yet, but it supports some org-mode.

https://beorgapp.com

Re:Emacs 26.2 Released by cmehdy on Friday April 12, 2019 @06:06PM (#19649479)
Any suggestions to pick it up without wanting to give up due to convoluted shortcuts?
Re:Emacs 26.2 Released by Symbiote on Friday April 12, 2019 @06:50PM (#19649742)
1. Swap your control and caps lock keys, or if you never use caps lock set it to an additional control key. I think this is useful regardless of whether you use Emacs or not.

It's also a good idea to use opposing hands when using modifier keys. To press control-H, you would use the left control with your left hand, and the H with your right hand. Again, this is true regardless of using Emacs (it applies just the same to typing capital letters with the shift keys).

2. Load Emacs.

3. Press Control-H, then press T. This loads the Emacs tutorial. It should take about 10-15 minutes to run though.

If you use Bash/Zsh or Mac OS, the basic cursor movement in the very first section of the tutorial can also be used in the Bash/Zsh shell, and in many Mac OS textboxes as alternatives to the Home/End/PgUp keys etc.

4. Read the manual section on macros [1]. I don't know so many emacs-level-10-wizard level commands, but making a macro saves me a lot of time and thought at least once a week.

[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Ke...

Re:Emacs 26.2 Released by blackorzar on Saturday April 13, 2019 @03:01PM (#19655052)
Thank you for the macro suggestion, I just gave it a try and I was surprised that it was so simple and practical as define: F3 keys/text F4 then run: F4
Re:Emacs 26.2 Released by nsilvestri on Friday April 12, 2019 @06:17PM (#19649550)
If you're already familiar with vim, I've heard good things about Spacemacs: http://spacemacs.org/
Re:Emacs 26.2 Released by vector_spaces on Friday April 12, 2019 @07:39PM (#19650011)
I'm not really crazy about Spacemacs because there's so much happening and I like to slowly build my config over time so I know what each piece does, so I can quickly make changes if there's something causing friction.

A nice happy medium is Prelude -- https://github.com/bbatsov/prelude

It's big, but probably not too big to understand and jump in and tweak.

I still prefer my own hand-rolled config though.

Re:Emacs 26.2 Released by danieldk on Saturday April 13, 2019 @07:51AM (#19652433)
I have used Spacemacs for a while (ex vi/vim user). It is a good gateway drug, but it is also buggy and slow.

After a few months, I started to build up my configuration bit by bit with use-package, evil, and general.el. I largely use the same keybindings as Spacemacs, but it's much leaner and faster.

Re:Emacs 26.2 Released by thomasfortes on Saturday April 13, 2019 @09:14AM (#19652826)
Had the same experience, spacemacs has nice defaults and it's gorgeous, but the lag bothered me so much that I was using vim a lot of time to get things to work.

Changed to a clean configuration and built it slowly, everytime I hit an annoyance I fixed and learned something new, now it works better than spacemacs for my workflow and still is way snappier.

Re:Emacs 26.2 Released by _emacsomancer_ on Friday April 12, 2019 @08:52PM (#19650346)
Or just install Evil in plain Emacs.
Re:Emacs 26.2 Released by ElCapitanMarkla on Friday April 12, 2019 @07:08PM (#19649841)
I installed spacemacs a couple of weeks ago. I’m enjoying it but I have to keep switching back to sublime to get things done quickly then switching back when I can afford to take time doing things.
Re:Emacs 26.2 Released by anotheryou on Saturday April 13, 2019 @04:02AM (#19651683)
same here. I'm totally fluid in org, but navigating files, a simple search and replace, finding the spell check suggestions: all still hard
Re:Emacs 26.2 Released by michaelmrose on Saturday April 13, 2019 @01:50PM (#19654555)
Basically just start flyspell mode in the modes you prefer including only for comments with flyspell-prog-mode and configure as desired.

    (use-package flyspell
        :config
        (setq ispell-program-name "/usr/sbin/aspell")
        (setq flyspell-consider-dash-as-word-delimiter-flag t)
        (define-key flyspell-mode-map (kbd "C-:") 'flyspell-correct-wrapper)
    )
    (use-package flyspell-correct)
    (use-package flyspell-correct-ivy)
you may want a binding to add the word at point to your dictionary I swiped this function for somewhere

    (defun my-save-word ()
    (interactive)
    (let ((current-location (point))
            (word (flyspell-get-word)))
        (when (consp word)    
        (flyspell-do-correct 'save nil (car word) current-location (cadr word) (caddr word) current-location))))
Re:Emacs 26.2 Released by signa11 on Friday April 12, 2019 @06:43PM (#19649710)
may you please share your wisdom and insight here ? thank you kindly!
Re:Emacs 26.2 Released by azinman2 on Friday April 12, 2019 @04:41PM (#19648764)
Just imagine when you discover vim!! :)
Re:Emacs 26.2 Released by jasonm23 on Friday April 12, 2019 @11:30PM (#19650942)
Vim is with respect, just an editor.

Emacs is often confused as being an editor, but it's not.

It certainly houses a few different editors, including Vim (as people will often point out eVil is Vim inside Emacs)

Emacs is basically a text centric computing platform, built with a flavor of Lisp.

At this point there's several thousand apps / packages.

It used to be a joke that Emacs is an Operating System that lacks a decent text editor. These days it has several.

The joke now should be that it lacks a decent logo and marketing department.

Or perhaps the joke should be that Vim users are terrified they're missing out on something they don't get so they use snark as a defense mechanism.

Re:Emacs 26.2 Released by azinman2 on Saturday April 13, 2019 @12:49AM (#19651168)
> “Emacs is basically a text centric computing platform, built with a flavor of Lisp.”

That’s actually the best explanation of Emacs I’ve heard. Thank you.

Re:Emacs 26.2 Released by schwurb on Saturday April 13, 2019 @06:15AM (#19652079)
I always think of Emacs (never used it tho) as a Smalltalk system without images and with Lisp instead of Smalltalk as the underlying language.

Every visible and invisible think is inspectable and changable at runtime, yup - pretty cool and I loved it for programming! Not sure whether I want to get on the emacs train tho. I have problems mantaining efficiency either way already... And I favor tools that work without set-up. Then again I am still young enough that learning investments pay off by a huge margin... tough.

Re:Emacs 26.2 Released by phillord on Saturday April 13, 2019 @05:41AM (#19651991)
"Text-centric computing platform" is lovely. Why don't you send that to Nicolas Petton -- it would great on the website.
Re:Emacs 26.2 Released by giggles_giggles on Friday April 12, 2019 @04:52PM (#19648846)
M-x package-install RET evil