Emacs Erc. Typing password error - emacs

When I try IRC from Erc, I do:
M-x erc
Enter server - choose default
Enter port - choose default
Enter Nick - choose default
Then it offers to type password. I press enter - and emacs shows <return> is undefined
My emacs is 24.3 and I got the same error both on Windows 7 and Debian.

Related

How do I exit nano in Emacs 26.3?

I'd like to know how to close nano under a term using /bin/bash, all under the context of in emacs -nw. A plain ^X doesn't work.
I tried entering the character mode using C-c C-k, but that didn't seem to help. Is there another "just send this along" command for a key binding?
Short answer: Esc Esc X will be interpreted by nano in the same manner as C-x.
Background: A [sometimes-]handy nano tip: press Esc twice followed by the desired key to send the equivalent Ctrl- command.

Emacs TRAMP - find-file can't enter user

I've recently upgrading to emacs 24.5 with TRAMP 2.2.12.
I use plink to access files on a remote server and am having trouble using the ampersand syntax shortcut to enter a different user than my default.
Problem
Executing:
'C-x C-f' /user#server:
After entering '#', I get the error:
"Opening directory: no such file or directory d:/user#".
It appears that find-file ignores that I am trying to send this input to plink. All works fine without specifying the user.
Are you using ido-mode? If so, then it's a bug I've previously reported.

Leader Key Shortcuts in Spacemacs

In the Spacemacs Documentation, creating the .spacemacs dotfile is accomplished with the following command:
<SPC> : dotspacemacs/install RET
I parse this as being the following string (note the preceding space):
: dotspacemacs/install
followed by me hitting the enter key.
When I open up emacs and type the first space, nothing appears to happen and my computer makes a sound I typically hear with invalid input. I have also tried the following:
: dotspacemacs/install (no preceding space). This gives me Unknown command: dotspacemacs/install
M-x (on my keyboard alt x) followed by both of the previously mentioned commands. These both result in [no match]
Where am I going wrong?
did you see the spacemacs buffer after you started emacs?
make sure you install the spacemacs correctly or you can copy that file manually :
cp ~/.emacs.d/core/templates/.spacemacs.template ~/.spacemacs
close emacs and reopen to see if works
SPC f e d
does create / open it after a fresh install.

Why can't I set mark on emacs?

I am trying to run Emacs on a guest system (Ubuntu 12.04)
inside a Windows 8 command console.
This is done through vagrant + Virtual box.
It looks like this,
Guest system : Ubuntu 12.04
Host system : Windows 8
Environment : Virtual Box + Vagrant
Emacs works fine except I can not set mark on text (C-SPC).
I supposed there is some kind conflict with the key binding.
So I tried and added this to init.el,
(global-set-key (kbd "C-8") 'set-mark-command)
It doesn't work either.
Would someone please advice me?
If you're running Emacs in a terminal, then C-SPC and C-8 are unlikely to send what you want them to.
Use C-h c C-SPC to ask Emacs what it's seeing.
Try using C-# instead.
FYI, I found the Cygwin X server excellent for running GUI Emacs in a Windows-hosted VM. With GUI Emacs you can use many more key combinations than a terminal emulator will permit.
If you try that, start the server with startxwin rather than startx (the former enables the X server's windows to appear as regular Windows windows), and then connect from an xterm with ssh -X or ssh -Y (see the man page) to connect with X11 forwarding.
Thanks a lot for the hint.
I finally figured out what the problem really is.
From the answer #phils, this link clarifies the problem.
Why does Ctrl+. not work when I bind it to a command in Emacs?
In my case, all C-[any other key] bindings work, except for the set-mark-command.
I found a workaround.
By adding the following code to .emacs.d\init.el I can use F8 to set mark now.
(global-set-key [f8] (quote set-mark-command))
It is still confusing why in other command, Ctrl+key bindings works.

emacs error in tramp mode

I have setup tramp mode with emacs, have been working using that mode for awhile, recently I start getting following error where I am unable to open any files.
Loading /etc/emacs/site-start.d/50sml-mode.el (source)...done [3 times]
For information about GNU Emacs and the GNU system, type C-h C-a.
Tramp: Opening connection for toolserver using scp...
Tramp: Sending command `exec ssh -e none toolserver'
Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec ssh -e none toolserver'
Tramp: Found remote shell prompt on `toolserver'
Tramp: Opening connection for toolserver using scp...done
byte-code: Couldn't find exit status of `test -e /home/FILE_NAME.py'
I have re-name the actual file to FILE_NAME.py
Actions taken:
I deleted the .tramp_history file but that didn't fix the problem.
try using the scpx or sshx protocol instead.
try (setq tramp-verbose 6) and check the output buffer to see what's really happening (C-h v tramp-verbose to see the levels), then proceed from there.
Sometimes, it's because my ssh-agent is dead. Restarting it solves the problem.
Sometimes it's because TRAMP still thinks the connection is somewhat usable when it's not. When this happen, I do M-x ibuffer * * D RET to kill all the TRAMP buffers so it starts over.
If none of this works, try to use latest TRAMP from melpa or to reinstall it. TRAMP works pretty fine out of the box, maybe you tweaked something that broke it?