emacs23

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

爷,独闯天下 提交于 2019-11-30 16:40:12
问题 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.) 回答1: It's

Do you use Emacs tabbar?

北战南征 提交于 2019-11-30 10:46:59
问题 The emacs tabbar.el package adds (buffer)tabs to each window and comes standard with aquamacs and can be added to emacs23 with the emacs-goodies-el package. Are any of you hardcore emacs users actually using tabbar? I'm sort of used to having tabs, but I would like to know if working without them could be more productive, and if there are other ways besides checking your bufferlist (C-x C-b) to get an overview of your current project files. As a side note, I really like textmate's project

Using prolog with emacs

牧云@^-^@ 提交于 2019-11-30 09:14:06
GNU Emacs 23.2.1 Fedora xfce 14 I starting to get into Prolog, and I want to use my emacs as the IDE for programming in Prolog. Currently I use emacs for c/c++. But not sure how to get started with Prolog. I know that emacs has a built in library for programming in emacs. However, I have researched and found it is feature less, i.e. no syntax highlighting, indention, etc. So I have download the emacs prackage Prolog.el. I have loaded this library using M-X Load-library . However, I am not sure what to do after that. How do I compile my prolog files? In the menu of the emacs IDE it has nothing

Adding Marmalade as Package Source

江枫思渺然 提交于 2019-11-30 03:08:25
I'm trying to add Marmalade as a package source, but when I do so I get the error: Symbol's value as variable is void: package-archives. Anyone know how to resolve this? Below is my .emacs file. ;;; This was installed by package-install.el. ;;; This provides support for the package system and ;;; interfacing with ELPA, the package archive. ;;; Move this code earlier if you want to reference ;;; packages in your .emacs. (when (load (expand-file-name "~/.emacs.d/elpa/package.el")) (package-initialize)) (add-to-list 'load-path (expand-file-name "~/.emacs.d")) (add-to-list 'load-path "~/.emacs.d

Emacs Org-Mode: Turn off line numbers

痞子三分冷 提交于 2019-11-30 01:40:17
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 line numbers for all files I edit. If I'm going to "live" in `Emacs', I'll want line numbers for all

Do you use Emacs tabbar?

本小妞迷上赌 提交于 2019-11-29 22:13:30
The emacs tabbar.el package adds (buffer)tabs to each window and comes standard with aquamacs and can be added to emacs23 with the emacs-goodies-el package. Are any of you hardcore emacs users actually using tabbar? I'm sort of used to having tabs, but I would like to know if working without them could be more productive, and if there are other ways besides checking your bufferlist (C-x C-b) to get an overview of your current project files. As a side note, I really like textmate's project drawer (and tabs), but anything similar in emacs looks just plain hideous. Bozhidar Batsov I've tried

emacs - [control shift up] doesn't work

你说的曾经没有我的故事 提交于 2019-11-29 12:03:02
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 control-shift-down work? I have googled "(control shift up)", it seems that control-shift-up is used by

Passing Emacs variables to minibuffer shell commands

痞子三分冷 提交于 2019-11-29 10:30:37
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? Or will I have to roll a custom elisp function? Indeed using C-u M-: is almost right. I'm not so sure

Emacs indent level global override

别说谁变了你拦得住时间么 提交于 2019-11-29 07:53:07
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 the wrong variables? Is there no such option? I work with a variety of languages (R, Perl, sh, C/C++ etc.

Adding Marmalade as Package Source

落爺英雄遲暮 提交于 2019-11-29 00:45:45
问题 I'm trying to add Marmalade as a package source, but when I do so I get the error: Symbol's value as variable is void: package-archives. Anyone know how to resolve this? Below is my .emacs file. ;;; This was installed by package-install.el. ;;; This provides support for the package system and ;;; interfacing with ELPA, the package archive. ;;; Move this code earlier if you want to reference ;;; packages in your .emacs. (when (load (expand-file-name "~/.emacs.d/elpa/package.el")) (package