Live data from Hacker News

Emacs 26.2 Released

lists.gnu.org

251–260 of 278 posts

Re: Emacs 26.2 Released

#252
post #248

Earlier quoted context omitted.

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…

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!

Emacs can now actually embed a webkit view.

Re: Emacs 26.2 Released

#253

Earlier quoted context omitted.

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.

same here. I'm totally fluid in org, but navigating files, a simple search and replace, finding the spell check suggestions: all still hard

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

#254
post #78

Earlier quoted context omitted.

Why vscode?

I’ve seen this pop up a lot lately—someone who’s been using Emacs or Vim for years and then sees the “new cool” editor and says they’ll be switching to it. I have the same question, since someone who’s used Emacs for that long would surely have “seen the light” already. Maybe they’re yak shaving with the config instead of getting work done? That’s one of the few valid complaints I can think of.

I use emacs `-nw` within tmux, on iterm2/3 on mac. There are several terrible problems with this setup which I've never bothered to lose a weekend to trying to sort out (don't misunderstand me: I have lost weekends to some of these problems, and I'm running out of spare weekends).

mac pbcopy/paste into emacs does strange and horrible things. Mouse and scroll-wheel integration roughly doesn't work at all. The list is long.

I also use terminal tools a lot (data engineering), so the terminal itself (and hence tmux) is an important part of my toolset. Meaning, I can't abandon the terminal. Nor do I want to -- as others have said, I have RSI issues with touchpads and mouse-clicking. Spectacle on Mac (or any actual tiling window manager on linux desktops) helps with that, but if I never had to touch a mouse/trackball again in my life, that would be awesome.

As others have said, I mostly want to use an integrated editor and get on with my job, rather than go down a half-century old rabbit hole of reading SICP just to tweak some editor defaults. Again, don't misunderstand me: learning LISP changed my life, man. But that's not the same as "can I enable rainbow delimiters for protobuf" (As an aside, Little Schemer is a much gentler intro to LISP, and also awesome.)

And since I know we're a community of people who get distracted by the next shiny problem to solve: please don't focus on trying to fix the list of issues I'm describing. That's not the point (and I have no spare weekends).

Re: Emacs 26.2 Released

#255
post #254
post #78

Earlier quoted context omitted.

I’ve seen this pop up a lot lately—someone who’s been using Emacs or Vim for years and then sees the “new cool” editor and says they’ll be switching to it. I have the same question, since someone who’s used Emacs for that long would surely have “seen the light” already. Maybe they’re yak shaving with the config instead of getting work done? That’s one of the few valid complaints I can think of.

I use emacs `-nw` within tmux, on iterm2/3 on mac. There are several terrible problems with this setup which I've never bothered to lose a weekend to trying to sort out (don't misunderstand me: I have lost weekends to some of these problems, and I'm running out of spare weekends). mac pbcopy/paste into emacs does strange and horrible things. Mouse and scroll-wheel integration roughly doesn't work at all. The list is…

>Mouse and scroll-wheel integration roughly doesn't work at all.

emacs, when started with the -nw flag, has nothing to do with mouse gestures. The terminal emulator (iterm in your case) sits between you and emacs and does not pass mouse gestures to emacs.

Actually, to be painfully precise, there is a convention, which iterm and emacs might or might not use, by which iterm could conceivably pass the location of single left clicks to the emacs process, but, e.g., mouse drag events and scroll-wheel events never get passed.

So for example when the users drags the mouse, then presses Command-C, `emacs -nw` has no way of knowing the user did that, and if anything got into the system clipboard, that is iterm's doing, not emacs's.

Might I suggest `open Emacs.app` rather than `emacs -nw`? Except for a GNU or Emacs logo that can be suppressed by setting the variable inhibit-startup-screen to non-nil and except for a tool bar that can be suppressed by evalling `(tool-bar-mode -1)`, the result is indistinguishable from a terminal window to most Mac users, but has mouse and scroll-wheel integration.

Re: Emacs 26.2 Released

#256
post #254

Earlier quoted context omitted.

I use emacs `-nw` within tmux, on iterm2/3 on mac. There are several terrible problems with this setup which I've never bothered to lose a weekend to trying to sort out (don't misunderstand me: I have lost weekends to some of these problems, and I'm running out of spare weekends). mac pbcopy/paste into emacs does strange and horrible things. Mouse and scroll-wheel integration roughly doesn't work at all. The list is…

>Mouse and scroll-wheel integration roughly doesn't work at all. emacs, when started with the -nw flag, has nothing to do with mouse gestures. The terminal emulator (iterm in your case) sits between you and emacs and does not pass mouse gestures to emacs. Actually, to be painfully precise, there is a convention, which iterm and emacs might or might not use, by which iterm could conceivably pass the location of single…

Can Emacs.app act as emacsclient?

Re: Emacs 26.2 Released

#257
post #129

Earlier quoted context omitted.

Any suggestions to pick it up without wanting to give up due to convoluted shortcuts?

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…

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

#259
post #256

Earlier quoted context omitted.

>Mouse and scroll-wheel integration roughly doesn't work at all. emacs, when started with the -nw flag, has nothing to do with mouse gestures. The terminal emulator (iterm in your case) sits between you and emacs and does not pass mouse gestures to emacs. Actually, to be painfully precise, there is a convention, which iterm and emacs might or might not use, by which iterm could conceivably pass the location of single…

Can Emacs.app act as emacsclient?

Yes.

To be precise, after `(server-start)` is evalled inside the Emacs.app process, whenever the command line `emacsclient ` runs anywhere, inside or outside the Emacs.app process, the Emacs.app "visits" (opens) .

Re: Emacs 26.2 Released

#260
post #97

Earlier quoted context omitted.

> f there is already an selection, the click causes the start or the end of the selection to move to the site of the click, which is behavior I've not seen in any other GUI Emacs does that in X11 because that is (or at least was ) the standard behavior for text selection in X11. Emacs is simply conforming to the environment it is running within.

Emacs's Mac (graphical) interface does that, too, which is not conforming to the environment it is running in. And there is no user option for changing it to a contextual menu containing Cut, Copy, Paste, etc. (I changed it for myself by writing about 100 lines of Emacs Lisp.)

Would you please share your code? I would like to have a similar setup for my emacs in windows.
Post reply on HN