emacs23

Emacs Org-Mode: Turn off line numbers

99封情书 提交于 2019-11-28 22:30:39
问题 I've recently moved from vim to Emacs because I want to use org-mode . I opened a ~10000 line, 50kb file in Emacs23 Org-mode and proceeded to add about 10 first-level headings. Performance on a quad-core with 3GB RAM in Emacs23 under Ubuntu 10.04/32bit was so slow that it was unusable. I found two threads on the Org-mode email list discussing this. It seems that enabling linum causes the slow performance. I can live without line numbers in .org files if I have to, but I don't want to disable

Emacs auto-complete-mode at startup

我怕爱的太早我们不能终老 提交于 2019-11-28 17:29:56
I just install auto-complete-mode, however everytime I start emacs I have to M-x auto-complete-mode. Is there anyway to have it loaded automatically ? My .emacs is as follows: ;; auto-complete (add-to-list 'load-path "~/.emacs.d/") (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict") (ac-config-default) Thanks I think you can do it in various ways. To enable it globally you should use (global-auto-complete-mode t) But it uses auto-complete-mode-maybe, which turn AC on only those listed in ac-modes . You can add them manually just like this (add-to-list

How does one send S-RET to Emacs in a terminal?

社会主义新天地 提交于 2019-11-28 09:56:49
In org-mode , pressing M-S-RET (meta-shift-return) will create a new TODO on a new line. This key sequence sends M-RET to emacs through my terminal. I've checked this with C-h c ESC-S-RET , which returns M-RET is undefined in the mini-buffer. I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a RET sequence in the terminal keyboard preferences. Any idea what's causing the missing SHIFT ? Workarounds? You can get Emacs to pretend that it got S-RET with C-x @ S RET (note uppercase S ). This also works for adding control, meta, alt, hyper or super

emacs - [control shift up] doesn't work

ぐ巨炮叔叔 提交于 2019-11-28 05:59:38
问题 I tried to define hotkey as following (global-set-key [(control shift up)] 'other-window) but it doesn't work (no error, just doesn't work), neither does (global-set-key [(control shift down)] 'other-window) But (global-set-key [(control shift right)] 'other-window) and (global-set-key [(control shift left)] 'other-window) work! But because the last two key combinations are used by emacs (as default), I don't wanna change them for other functions. So how could I make control-shift-up and

Passing Emacs variables to minibuffer shell commands

岁酱吖の 提交于 2019-11-28 03:47:09
问题 I can run a shell command quickly by hitting M-! . One thing I'd like to do is perform shell quick operations on the current file. An example would be checking the file out through perforce: M-! p4 edit buffer-file-name RET (Yes there are perforce integrations, but I'm more interested in the minishell/variable problem rather than a specific workflow) Of course, the buffer-file-name variable is not evaluated before the command is sent to the shell. Is there an easy on-the-fly way to do this?

How do I change emacs default font size and font type?

醉酒当歌 提交于 2019-11-28 03:32:10
I am using emacs 23.3. I need to change the font size and font type, can anyone help me? You can use the menu bar. Go to Options -> Set Default Font... . After you choose a font, don't forget to press Options -> Save Options —otherwise your new font will not be saved after you close Emacs. Dov Grobgeld You can also do the following in your .emacs file. Emacs 23.1 (set-frame-font "Inconsolata 12" nil t) Older versions of Emacs (set-default-font "Inconsolata 12" nil t) To get an extended list of customization use M-x customize-face RET Emacs 25.1 on MacOS has Menlo 12 as default. I wanted to

Emacs indent level global override

痞子三分冷 提交于 2019-11-28 01:22:14
问题 I want to set the indentation mode to tabs only, with a 4 character width for any mode. This seems like a trivial thing, but I have not had success. Every mode seems to have its own variables and options. I've tried doing this for Perl and R without success. Things that have not worked: (setq-default tab-width 4) (setq standard-indent 4) (setq-default r-indent-level 4) (setq perl-indent-level 4) (setq c-basic-offset 4) works for c-mode but nothing else. Am I forgetting something? Did I set

In emacs23 how to bound C-<return> to C-<return> instead of C-J

*爱你&永不变心* 提交于 2019-11-27 23:10:18
问题 I am trying to use org-mode and whenever I press Crtl+return emacs does C-J instead. I know this because when I use c-h k and then press crtl+return, emacs shows: "It is bound to C-j." Is there anyway I can make it register ctrl+return so I can insert headings? I am using emacs23 through the terminal on ubuntu 12.04 x64. When I do this on my windows machine it does insert a new heading. 回答1: Possibly. As @phils says, C-Enter is usually not a valid sequence for the vast majority of terminal

Changing Emacs Forward-Word Behaviour

巧了我就是萌 提交于 2019-11-27 13:59:01
As the title says, how does one change the behaviour of emacs forward-word function? For example, suppose [] is the cursor. Then: my $abs_target_path[]= abs_path($target); <M-f> my $abs_target_path = abs[_]path($target); I know I could just use M-f M-b but as far as I'm concerned, that shouldn't be necessary and I'd like to change it. In particular, I want two things: When I press M-f, I want to go to the first character of the next word regardless of whether the point is within a word, within a group of spaces or somewhere else. Customize word-characters on a mode-by-mode basis. After all,

How does one send S-RET to Emacs in a terminal?

会有一股神秘感。 提交于 2019-11-27 05:53:09
问题 In org-mode , pressing M-S-RET (meta-shift-return) will create a new TODO on a new line. This key sequence sends M-RET to emacs through my terminal. I've checked this with C-h c ESC-S-RET , which returns M-RET is undefined in the mini-buffer. I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a RET sequence in the terminal keyboard preferences. Any idea what's causing the missing SHIFT ? Workarounds? 回答1: You can get Emacs to pretend that it got S