Something wrong with Emacs shell
You can use AnsiTerm which does support colors or you can enable AnsiColor for the normal shell: (autoload ‘ansi-color-for-comint-mode-on “ansi-color” nil t) (add-hook ‘shell-mode-hook ‘ansi-color-for-comint-mode-on)
You can use AnsiTerm which does support colors or you can enable AnsiColor for the normal shell: (autoload ‘ansi-color-for-comint-mode-on “ansi-color” nil t) (add-hook ‘shell-mode-hook ‘ansi-color-for-comint-mode-on)
As of Emacs 22.1 (at least), ‘save-buffers-kill-emacs (the default binding for C-x C-c) prompts you for each unsaved buffer that has a file. Type a d when prompted to save and see the diff. From the help documentation: Save some modified file-visiting buffers. Asks user about each one. You can answer `y’ to save, `n’ … Read more
This is actually C-x Forward (right cursor arrow) and C-x Back (left cursor arrow)
You’ll need to provide more information to be sure. Try setting (setq debug-on-error t) which will give you a stack trace showing what function is complaining about the string being nil. My guess is that buffer-file-name is returning nil, and that’s where the problem lies (not all buffers have file names). Check out the debugging … Read more
Not minutes after asking the question I figured it out by copy+pasting code. However I have no clue how it works. (global-set-key (kbd “M-<up>”) (lambda () (interactive) (move-line -1)))
No plugin needed for basic Emacs keybindings! Go to Windows → Preferences → General → Keys and select Emacs scheme. It won’t provide all Emacs commands (obviously) but it covers the things you can’t live without such as navigation, selection, cutting / pasting etc.
If you (require ‘cl) then you can use the Common Lisp function reduce. Pass the keyword argument :from-end t for foldr. ELISP> (reduce #’list ‘(1 2 3 4)) (((1 2) 3) 4) ELISP> (reduce #’list ‘(1 2 3 4) :from-end t) (1 (2 (3 4)))
If you’re entering the regex interactively, and want to use {3}, you need to use backslashes to escape the curly braces. If you don’t want to match any part of the longer strings of numbers, use \b to match word boundaries around the numbers. This leaves: \b[0-9]\{3\}\b For those wanting more information about \b, see … Read more
There’s ff-find-other-file. You can bind this to your own key using something like: (global-set-key (kbd “C-x C-o”) ‘ff-find-other-file) But of course you’ll need to pick a key that doesn’t already have something useful bound to it 🙂
Seems you are using an old emacs/vc/vc-hg version. Simply upgrading is probably the easiest solution. I had a similar problem, which I could solve bit by bit by improving small settings and even made a patch. It never really solved all. Until I upgrade to a recent emacs (and support file); I use the Aquamacs … Read more