Live data from Hacker News

Emacs Is My New Window Manager

howardism.org

91–100 of 166 posts

Re: Emacs Is My New Window Manager

#91
post #68

This is awesome and has opened my eyes to features of emacs I didn't know about. But I still have use for tmux because it lets me attach to the same long-running session on a remote host from multiple clients. I'll probably just start having emacs be the only window open in my tmux session.

Check out emacs-server then ;).

Ok, now I have no need for tmux anymore. Thanks!

Re: Emacs Is My New Window Manager

#92
post #89

The OP uses (set-frame-parameter nil 'fullscreen 'fullboth). In contrast, I use (set-frame-parameter nil 'fullscreen 'maximized) leaving OS X's menu bar and Dock on the screen. I do not know if Homebrew package `emacs` has been fixed because these years, I only ever install Homebrew package `emacs-mac` (a.k.a., Mitsuharu Emacs) but it used to be that one had to install Emacs.app via `brew install emacs-mac` instead o…

How does this handle multiple displays?

I cannot do a definitive test because I only ever use one monitor at a time, but since (set-frame-parameter nil 'fullscreen 'maximized) does not make use of the fullscreen mode introduced by Apple with Lion, it will almost certainly not suffer from the most-complained-about problem with multiple monitors on OS X.

In contrast, (set-frame-parameter nil 'fullscreen 'fullboth) does make use of Lion's fullscreen mode -- and it gets rid of the menu bar and the Dock, letting the Emacs frame occupy every screen pixel. But then at least on Lion and Mountain Lion (which is the extent of my experience with recent versions of OS X) multi-monitor support is hosed IIUC.

Re: Emacs Is My New Window Manager

#93
post #15

My impression has been that emacs is a poor window manager. Granted, I am not incredibly skilled with emacs but even after some weeks I was still confused by the way emacs opened up new windows or changed existing windows when you've clicked on something (for instance, in dired or org-mode's agenda) I ended up to open everything in a new frame and left the management of these frames to awesomewm.

I agree, some Emacs commands use windows unintuitively and destructively. Dired and various searching modes (grep, ack, ag) are major offenders. You should (1) mitigate the problem with winner-mode so you can easily recover your window configuration, and (2) learn enough Elisp to tweak the poorly-thought-out commands. It usually takes me no more than 15 minutes to figure out what function does the wrong thing and add a small snippet of code to my .emacs.d/init.el which either reimplements the behavior or uses Elisp's brilliant advice feature to isolate and override with better behavior.

More modern modes usually behave well. Magit, for example, uses windows correctly.

Here is an example of how I used advice to fix bad mouse behavior (yes, I use the mouse sometimes to switch windows): http://emacs.stackexchange.com/questions/7347/preventing-mou...

Re: Emacs Is My New Window Manager

#94
post #2

I'm a vim guy, but I've been wanting to try emacs for a long time. Any tip for a convert like me? Is the "trick" just to make the jump and persist until it clicks? How do I still get my job done in the mean time?

Try Spacemacs: https://github.com/syl20bnr/spacemacs

Being a Vim user of 4+ years, and having made 2 previous attempts at switching to Emacs, this is the setup that finally made me immediately productive enough to get work done. Been using this as my primary environment for more than a month now.

Re: Emacs Is My New Window Manager

#95
Thanks for writing that up - I am going to work on improving my Emacs setup on my Linux and OS X laptops. I find it much easier to write or code when my screen is not cluttered so full screen Emacs makes sense for me.

BTW, off topic, but re: having a personal environment while at work: I was fortunate to work at Google for a while in 2013 and I was uncomfortable having any personal setups on my work Linux box or laptop. My solution was simple: I just used my Android phone for personal email, checking Hacker News, etc. during my lunch break. I also have a SSH shell app on my phone so in an emergency I could have accessed my personal servers. Anyway, it seems odd to spend too much effort setting up a personal environment for use at work :-)

Re: Emacs Is My New Window Manager

#96
The one thing that I have never been able to work to my liking is running a shell inside emacs. I've tried the different modes (term, ansi-term, eshell) and find that they are all deficient in different ways.

I think the main issue is that I have different operating models for emacs vs a terminal and when they get mashed together I subconsciously want a superset of functionality without any conflicts. So when there are key bindings that are different in term mode I get quite annoyed. Likewise, I have no problem with copy/paste in an xterm or in emacs, but put a terminal inside emacs and copy/paste frustrates me all day.

Re: Emacs Is My New Window Manager

#97
post #8

I'm always a little jealous when I see what people do with emacs. But I've never liked using emacs, so I've resigned myself to a permanent, mild case of emacs envy. I think you could get approximately his same functionality with a terminal (e.g urxvt) and tmux for the splitting. In fact I do essentially that at work on Windows, from a cygwin terminal and tmux. When it fits whatever workflow I'm doing from within cygw…

The nice thing about Emacs is how much it's open to modification. There are compatibility modes to make it work like other editors (eg. "evil mode" to make it work more like Vi, "cua mode" to use "normal" key combos instead of having to learn Emacs's, etc.). There are often a bunch of alternative ways to do things, which have their own pros and cons, so if something seems frustrating, it pays to Google around a littl…

I've only used eshell casually, but /dev/clip for redirecting output to the clipboard was really handy. It turns out there's a bunch of ways to do this, but eshell was my first exposure to clipboard as file.

It's also kinda nice setting up emacs in a cygwin that winds up being relatively consistent with mac.

Re: Emacs Is My New Window Manager

#98
I basically have a variation on this set up but I use Vagrant on top of VirtualBox. Then I keep the Vagrantfile and ancillary files on github. So I can theoretically show up to a computer and be able to quickly recreate my environment. I customize my VMs for Python or Clojure development and have a nicely set up emacs as foundations for both. This set up is really useful for Python where different Pythons coming from different package managers (brew, conda) tend to clash on my regular (OS X) OS.

Re: Emacs Is My New Window Manager

#99
post #56
post #2

I'm a vim guy, but I've been wanting to try emacs for a long time. Any tip for a convert like me? Is the "trick" just to make the jump and persist until it clicks? How do I still get my job done in the mean time?

After years of using vim I made the switch last Friday when I stumbled across this fellow's blog post while randomly trying to figure out more about evil mode: http://juanjoalvarez.net/es/detail/2014/sep/19/vim-emacsevil... It took all day Saturday to configure things so they mostly behaved the same as my vim environment, mixed with learning emacs specific stuff along the way. There's a few quirks I still need to wor…

Use either https://github.com/nex3/perspective-el or https://github.com/pashinin/workgroups2.

Re: Emacs Is My New Window Manager

#100
post #52

Earlier quoted context omitted.

He says that his work is virtualization systems, so the install of (e.g.) VirtualBox itself is not "personal software." It really comes down to whether or not you consider the guest OS image running in the virtualization system to be "installing personal software."

Most IP reassignments I've ever signed have included the clause "any IP developed with the company's resources belongs to the company". This would include anything created in such a VM, unfortunately. So, if you're not worried about that, it's a great separation of concerns. If you are developing new IP, though, you would want to be very careful about using your work machine. I'm even nervous about logging into a per…

It doesn't sound like he's "creating" anything of value in the VMs. He notes that he mostly uses it for org-mode. It's probably just him needing to access (from his work computer) to notes / agenda info that he would rather keep (e.g.) on his personal Dropbox.

You are right though that anything done using "company resources" may be fair game for a legal battle to determine ownership.

Post reply on HN