|
Notorious b.s.d. posted:Use emacs 'desktop' instead. It will save all of your frames / windows + all open buffers. You can easily set it to save periodically in the background. Is there a way to have it not save open buffers? I tend to close emacs in order to clear out my buffers (I know there are other ways to do that, but MAH WORKFLOW).
|
# ¿ Jan 2, 2015 07:46 |
|
|
# ¿ May 10, 2024 03:17 |
|
horse mans posted:Is there some kind of function or advice which is run when something is drag-and-dropped onto Emacs' application icon on OS X? I want its behavior for files to be the same as usual, but for directories I want it to open a new frame and present a Sublime-like directory tree and load in directory-specific symbol and file search. Does this help? https://www.gnu.org/software/emacs/manual/html_node/emacs/Mac-_002f-GNUstep-Events.html
|
# ¿ Jan 7, 2015 04:40 |
|
Does anyone have any tips for getting TRAMP to autocomplete with plink.exe? I've looked through the docs, but they are supremely unhelpful. It'd be killer if it could autocomplete paths on the target machines (e.g. by opening an SSH connection once I typed the hostname and hit tab), but I'd be happy with just autocompleting the hostnames.
|
# ¿ Jan 13, 2015 07:16 |
|
Notorious b.s.d. posted:Tramp autocompletes paths just fine for me. Yeah, it's probably mainly because I'm using this to remote from Windows, via plink.exe, to my Linux VM. The docs just don't say much about the plink case.
|
# ¿ Jan 17, 2015 07:59 |
|
tak posted:probably C:\Windows\system32\drivers\etc\hosts Unfortunately, for plink it's not that simple, since plink's session names (which emacs uses for the host name part of the TRAMP path) aren't necessarily related to the server's host name; they're just arbitrary names you type into putty. They're also stored in the Windows registry, but I think you can make them be stored in a file instead.
|
# ¿ Jan 20, 2015 07:25 |
|
brae posted:I have a Windows 8 VM and was able to write some elisp that grabs hostnames from the registry where Putty stores them (after Google told me where that was). Sorry for taking so long to reply, but this is definitely a good start. I haven't gotten it working yet either, but this at least points me in the right direction. If I figure it out, maybe I can host it on MELPA or something... EDIT: Ok, this is really weird. It looks like emacs already has support for autocompletion for plinkx via tramp-parse-putty, but it's not working for some reason... EDITx2: So far, I've narrowed the issue down to (find-file-name-handler "/" 'file-name-all-completions) returning nil on Windows, but tramp-completion-file-name-handler on Linux. Avenging Dentist fucked around with this message at 00:10 on Feb 13, 2015 |
# ¿ Feb 12, 2015 18:12 |
|
Ok, I finally figured it out: emacs on Windows takes a "/" and converts it to a Windows-style path (e.g. "C:/"), which TRAMP tries to detect with a regexp in file-name-handler-alist, but the regexp is wrong. Replacing it like so gives me autocompletion of host names: code:
Avenging Dentist fucked around with this message at 05:30 on Feb 13, 2015 |
# ¿ Feb 13, 2015 00:51 |
|
Mr. Fish posted:That is exactly what it means, personally I find it frustrating that I can close my server by accident. Wait. How do you close your server by accident? I've literally never had this issue (on Windows anyway). I guess we must have different configs. Here's what I do: http://www.emacswiki.org/emacs/EmacsClient#toc16 (plus server-start in my .emacs, of course). Apparently I run the following command when double-clicking a text file in the Explorer to open it in emacs: code:
Avenging Dentist fucked around with this message at 21:26 on Mar 2, 2015 |
# ¿ Mar 2, 2015 21:22 |
|
bigperm posted:First, I am on windows 7 and emacs uses %appdata% for the .emacs file and... home directory. This is driving me crazy because I think there is a disconnect between what windows considers 'user space' and what emacs wants is totally different and I can't seem to wrap my head around what I need to do. Set your HOME env var: https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html
|
# ¿ Sep 19, 2016 23:51 |
|
Post your .emacs and we can take a look. If I had to guess, you hosed up the syntax somewhere and your .emacs isn't being executed.
|
# ¿ Sep 22, 2016 01:50 |
|
Try http://melpa.org/packages/ instead of https. See this bug. There are surely better ways than not using HTTPS, but since you probably don't want to debug SSL issues right now, using HTTP should be simpler. e: Updated link to a more-relevant bug report. Avenging Dentist fucked around with this message at 02:17 on Sep 22, 2016 |
# ¿ Sep 22, 2016 02:14 |
|
|
# ¿ May 10, 2024 03:17 |
|
After reading the bug report some more, it seems like this might be resolved in emacs 25 on Windows, so if you're on 24, you could try upgrading if you want to use the HTTPS link for MELPA. I don't use darkroom-mode, so I can't help you much there.
|
# ¿ Sep 22, 2016 02:45 |