emacs23

Emacs compilation mode won't see bash alias

 ̄綄美尐妖づ 提交于 2019-12-06 17:20:09
问题 Emacs M-x compile does not see any aliases set in .bashrc. If I use M-x shell then type the alias, it is fine. I tried sourcing .bashrc from /etc/profile, from ~/.profile, ~/bash_env, anything I can think of to no avail. I am on Emacs 23 and Ubuntu 11. I start emacs using /usr/bin/emacs %F, from a desktop button. 回答1: Emacs inherits its environment from the parent process. How are you invoking Emacs - from the command line, or some other way? What happens if you: M-x compile RET C-a C-k bash

how do i keep emacs server running when the current window is closed (x) on windows using emacsW32?

老子叫甜甜 提交于 2019-12-06 11:50:59
I'm using EmacsW32 (patched) on windows. Emacs is running in server mode so that subsequent calls to emacsclientw open files in the same server session. I have C-x C-c mapped to make the current frame invisible and not kill the emacs server process. I'd like clicking the window's X (close) button to also just hide the frame & not terminate the server process as it currently does. Any ideas ? Thanks! Sure, I have a method of doing this. There may be refinements possible, but this is a good starting place. First, I setup a variable and advise the kill-emacs function (defvar bnb/really-kill-emacs

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

 ̄綄美尐妖づ 提交于 2019-12-05 04:48:16
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 command prompts and not the regular minibuffer text. There seem to be a number of minibuffer variables

Emacs compilation mode won't see bash alias

浪子不回头ぞ 提交于 2019-12-04 23:05:19
Emacs M-x compile does not see any aliases set in .bashrc. If I use M-x shell then type the alias, it is fine. I tried sourcing .bashrc from /etc/profile, from ~/.profile, ~/bash_env, anything I can think of to no avail. I am on Emacs 23 and Ubuntu 11. I start emacs using /usr/bin/emacs %F, from a desktop button. Emacs inherits its environment from the parent process. How are you invoking Emacs - from the command line, or some other way? What happens if you: M-x compile RET C-a C-k bash -i -c your_alias RET Invoking bash as an interactive shell (-i option) should read your .bashrc aliases.

Emacs Python-mode syntax highlighting

北城余情 提交于 2019-12-04 11:28:25
问题 I have GNU Emacs 23 (package emacs23 ) installed on an Ubuntu 10.04 desktop machine and package emacs23-nox installed on an Ubuntu 10.04 headless server (no X installed). Both installations have the same ~/.emacs file. I run Emacs with -nw on both computers. I don't have python-mode installed on either machine as my understanding is that this is included in Emacs 23. On the desktop machine, comments in Python (starting with # ) are highlighted in red. On the server, comments appear in plain

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

走远了吗. 提交于 2019-12-04 01:22:13
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. Victor Deryagin 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 any future entries of the above from being added to the recentf list. You need to delete the

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

痞子三分冷 提交于 2019-12-03 21:25:31
问题 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. 回答1: 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

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

独自空忆成欢 提交于 2019-12-03 16:20:59
问题 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

Adding Subdirectories to Load Path

亡梦爱人 提交于 2019-12-03 11:34:06
问题 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? 回答1: You're so close... (let ((default-directory "~/.emacs.d/plugins/")) (normal

Emacs Python-mode syntax highlighting

半腔热情 提交于 2019-12-03 07:12:57
I have GNU Emacs 23 (package emacs23 ) installed on an Ubuntu 10.04 desktop machine and package emacs23-nox installed on an Ubuntu 10.04 headless server (no X installed). Both installations have the same ~/.emacs file. I run Emacs with -nw on both computers. I don't have python-mode installed on either machine as my understanding is that this is included in Emacs 23. On the desktop machine, comments in Python (starting with # ) are highlighted in red. On the server, comments appear in plain white text like all other non-highlighted text. Any suggestions as to why comments are not being