emacs23

emacs23 pops up debugger way too frequently

回眸只為那壹抹淺笑 提交于 2019-12-12 08:06:56
问题 Since I've upgraded to Ubuntu lucid and emacs23, Emacs pops up the debugger in situations, where emacs22 does not. For example, when hitting C-c C-c in org-mode, emacs22 simply states can do nothing useful at this location , whereas in emacs23 the debugger shows up. Debugger entered--Lisp error: (error "C-c C-c can do nothing useful at this location") signal(error ("C-c C-c can do nothing useful at this location")) error("C-c C-c can do nothing useful at this location") org-ctrl-c-ctrl-c(nil)

emacs 23 on OS X: mailto links & calling compose-mail?

安稳与你 提交于 2019-12-11 10:53:27
问题 I'm trying the 23.2 release Cocoa Emacs build (OS X 10.6). There's a number of things that are more annoying about Cocoa Emacs than the terrific Carbon Emacs (based on an Emacs 22 build, I believe), so I hoped folks might have some solutions/thoughts (unfortunately posting on neither the carbon-emacs list nor emacs-dev has produced a useful reply, so I thought I'd try Stack Overflow for the first time): In Firefox, I can set the Preferences, Applications, mailto content type to "Use Emacs".

Disabling prefix key binding

你说的曾经没有我的故事 提交于 2019-12-11 07:47:09
问题 In shell mode on emacs, the current key binding for quitting the shell mode ( 'comint-interrupt-subjob ) is "\C-c \C-c" , and I want to change it to "\C-c" as in ordinary linux shell. I tried (add-hook 'shell-mode-hook '(lambda () (local-set-key "\C-c" 'comint-interrupt-subjob) )) But it did not work. Probably I need to disable the prefix assigned to "\C-c" . How can I do that? 回答1: Try this: (eval-after-load "shell" '(define-key shell-mode-map (kbd "C-c") 'comint-interrupt-subjob)) In

Add a TeX symbol in the Emacs init file

旧街凉风 提交于 2019-12-11 02:59:31
问题 I am trying to add the following code to my .emacs init file: (TeX-add-symbols '("eqref" TeX-arg-ref)) But I cannot get it to work. I get the following error when running emacs t.tex ( t.tex is here a sample text file) from the command line: Warning (initialization): An error occurred while loading `.emacs': Symbol's function definition is void: TeX-add-symbols I am using GNU Emacs version 23.3.1 on Ubuntu 12.04. My .emacs init file looks like (setq TeX-auto-parse t) (setq TeX-electric-escape

Strange characters in ansi-term in emacs

风流意气都作罢 提交于 2019-12-11 02:39:32
问题 I wrote a c++ program and when I compiled it using g++ in ansi-term, I got some strange characters displayed: If required, the error was that i hadn't declared the variable n. How can I correct this? 回答1: Ah! Tested this... (setq locale-coding-system 'utf-8) (set-terminal-coding-system 'utf-8-unix) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) and problem solved!!! 回答2: Looks like the gcc output contains UTF-8 "smart quotes" and your

Emacs - set mark on edit location

只谈情不闲聊 提交于 2019-12-10 18:49:08
问题 I want emacs to add last edit location to the mark ring, so I can jump back to previous edit locations. Ideally this would only mark one edit location per line. When I edit another line, the last edit location on that line would be added to the ring, and so forth. I'm not familiar with Lisp to implement this myself. If anyone knows of a plugin or can kindly provide a solution that would be great! :) 回答1: Session.el provides this functionality bound to "C-x C-/" or session-jump-to-last-change

Altering the font size for the Emacs minibuffer separately from default emacs?

徘徊边缘 提交于 2019-12-10 04:15:13
问题 I've been attempting to alter the font / face for the emacs minibuffer separately from emacs default fonts, but without much luck. Specifically, I'm interested in making the minibuffer font size larger for use with the emacs MULE as, with my current font setting or if I'm using emacs on a "netbook" screen, sometimes the character selection options in the MULE are a bit small. Options easily accessed within emacs are the minibuffer-prompt & minibuffer-prompt-properties, but these are only for

Force emacs recent files using recentf to ignore specified files (.windows and .revive for example)

喜夏-厌秋 提交于 2019-12-09 14:52:15
问题 I have always been bugged by the fact that when exiting with revive.el and windows.el enabled it opens a file and writes to it called .revive and .windows. These are saved so it goes in the recent files list. Is there anyway to make it ignore these files or any other files I desire. 回答1: A way to make recentf ignore some files is to add appropriate regexps to recentf-exclude list: (add-to-list 'recentf-exclude "\\.windows\\'") (add-to-list 'recentf-exclude "\\.revive\\'") This will prevent

Using prolog with emacs

允我心安 提交于 2019-12-08 23:13:04
问题 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

Emacs - Can't get buffer-offer-save working

﹥>﹥吖頭↗ 提交于 2019-12-06 20:05:57
问题 I would like to have Emacs ask me whether I want to save a modified buffer, when that buffer is not associated with a file. To open a new buffer (not visiting a file) I have the following function in my .emacs file: ;; Creates a new empty buffer (defun new-empty-buffer () "Opens a new empty buffer." (interactive) (let ((buf (generate-new-buffer "untitled"))) (switch-to-buffer buf) (funcall (and default-major-mode)) (setq buffer-offer-save t))) I thought setting "buffer-offer-save" to