emacs23

M-RET and M-UP/DOWN not working in Emacs org-mode in console/terminal

感情迁移 提交于 2019-12-03 05:37:23
I'm using emacs23 on Ubuntu 32-bit 10.04/10.10 with GNOME and Compiz. Pressing M-RET in an org-mode plain list in Emacs (GUI) inserts a new item. Pressing M-Up moves the item up in the list. These keys don't work as expected in emacs -nw under Terminator and gnome-terminal . The M-Up key does nothing, whereas the M-RET key simply moves the cursor down one line and indents the position. The keys also don't "work" in xterm , which inserts \215 instead. Pressing ESC-RET or ESC-Up instead produces the expected functionality. The same problems exist if I run emacs -nw on a headless server accessed

Emacs 23 and iPython

梦想与她 提交于 2019-12-03 04:15:15
问题 Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend? 回答1: I got it working quite well with emacs 23. The only open issue is the focus not returning to the python buffer after sending the buffer to the iPython interpreter. http://www.emacswiki.org/emacs/PythonMode#toc10 (setq load

What are good custom keybindings in emacs?

此生再无相见时 提交于 2019-12-03 02:31:43
Emacs seems to have all the possible keyboard combinations already randomly distributed among it's commands. :p If I am to define new keyboard shortcuts, where should I put them? Which prefixes should I use? For instance: I want to define shortcuts for the following functions: indent-buffer (C-c i, after I got the answer) comment-or-uncomment-region (C-c C) rdebug (ruby debugger) (C-c R) rsense-complete (ruby autocomplete) (C-c e) Where would you put these? Why? Trey Jackson Emacs actually has a very definite pattern to its bindings, this answer shows some. As far as where you should define

Adding Subdirectories to Load Path

折月煮酒 提交于 2019-12-03 02:03:28
Rather than individually specifing each subdirectory in my plugins directory I want to be able to automatically load them, to that end I included the following to my .emacs file: (let ((base "~/.emacs.d/plugins/")) (normal-top-level-add-subdirs-to-load-path)) require 'rinari require 'yasnippet Unfortunately the above results in: File error: Cannot open load file, rinari Anyone know what's wrong and how to fix it? You're so close... (let ((default-directory "~/.emacs.d/plugins/")) (normal-top-level-add-subdirs-to-load-path)) normal-top-level-add-subdirs-to-load-path works off the current

Emacs 23 and iPython

坚强是说给别人听的谎言 提交于 2019-12-02 16:41:54
Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend? HörmannHH I got it working quite well with emacs 23. The only open issue is the focus not returning to the python buffer after sending the buffer to the iPython interpreter. http://www.emacswiki.org/emacs/PythonMode#toc10 (setq load-path (append (list nil "~/.emacs.d/python-mode-1.0/" "~/.emacs.d/pymacs/" "~/.emacs.d/ropemacs-0.6

Changing the size of the menu from the “Buffers” item in the menu bar in emacs

时光总嘲笑我的痴心妄想 提交于 2019-12-01 21:18:29
问题 Currently, the menu brought up by the Buffers menu item in the menu bar only shows the last 9 buffers and no more than about 29 characters of the buffer name. How can I change the number of buffers displayed in this menu and how can I get it to show more characters in the buffer name? 回答1: How 'bout buffers-menu-buffer-name-length and buffers-menu-max-size ? You may also prefer using C-mouse-1, which gives you a different kind of "buffers menu", which I personally prefer (so I just get rid of

Shift-Tab produces cryptic error in Emacs

ⅰ亾dé卋堺 提交于 2019-12-01 04:13:54
I'm trying to learn org-mode and noticed my files are folded neatly when I exit emacs. When pressing S-TAB in an attempt to unfold the entire file, I get the following error message in the mini-buffer: M-[ z is undefined . Googling the error wasn't helpful. Any idea where the hiccup is occurring and how I might fix it? I'm using Mac OS X 10.6.4 with Terminal.app, GNU Emacs 23.2.1. Edit: I can confirm now that the problem is Terminal.app. I do not receive this error message using Carbon Emacs or when using Emacs from within iTerm.app. Thanks to Gilles for patiently walking me through a solution

How do I set buffer local variable from Eval: in .dir-local.el?

拈花ヽ惹草 提交于 2019-11-30 23:18:04
Why this works ((nil . ((compilation-directory . "/home/vava/code_directory/") (compilation-command . "rake")) )) and this doesn't? ((nil . ((Eval . (setq compilation-directory "/home/vava/code_directory")) (compilation-command . "rake")) )) What I'm doing wrong here? I have set enable-local-eval in .emacs. Emacs Lisp is case-sensitive: try lower-case "eval": ((nil . ((eval . (setq compilation-directory "/home/vava/code_directory")) (compilation-command . "rake")))) Also, the name of the file for directory-local variables is .dir-locals.el , not .dir-local.el as in the question headline.

Word wrap for Emacs print buffer to PDF

泄露秘密 提交于 2019-11-30 18:25:19
问题 I use this function for printing a buffer's content to PDF (from my .emacs file:) (defun print-to-pdf () (interactive) (ps-spool-buffer-with-faces) (switch-to-buffer "*PostScript*") (write-file "/tmp/tmp.ps") (kill-buffer "tmp.ps") (setq cmd (concat "ps2pdf14 /tmp/tmp.ps /home/user/" (buffer-name) ".pdf")) (shell-command cmd) (shell-command "rm /tmp/tmp.ps") (message (concat "Saved to: /home/user/" (buffer-name) ".pdf")) ) I cannot, however, find a way to enable or apply the visual-line minor

How can I get the compilation buffer on the bottom rather than on the right in Emacs 23?

允我心安 提交于 2019-11-30 18:11:49
I've installed Emacs 23 and have found that the compilation buffer (when using M-x compile) appears in a different position than it did in Emacs 22. The currently open buffer appears on the left and the compilation buffer on the right. How to I revert to the Emacs 22 behavior of having the current buffer open on the top and the compilation buffer on the bottom? (Splitting the screen horizontally also is the case for the buffer list (M-x switch-to-buffer <tab>) buffer as well.) It's probably the new split-window-preferred-function variable and split-window-sensibly function. Emacs now tries to