emacs23

How to gracefully shutdown emacs daemon? [closed]

早过忘川 提交于 2020-06-09 07:43:56
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . On login to Ubuntu, I start an Emacs (version 23) daemon using Ubuntu's Startup programs. I then start Emacs clients whenever I need to edit something. When I logoff from Ubuntu, it says Emacs is still running, of course. I need to attach a script somewhere to tell Gnome to shutdown

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

南楼画角 提交于 2020-01-02 10:15:26
问题 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! 回答1: Sure, I have a method of doing this. There may be refinements possible, but this is a

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

送分小仙女□ 提交于 2020-01-02 10:09:30
问题 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! 回答1: Sure, I have a method of doing this. There may be refinements possible, but this is a

Shift-Tab produces cryptic error in Emacs

帅比萌擦擦* 提交于 2019-12-30 08:33:10
问题 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

How to debug an R package (with C code) in Emacs using GDB?

大城市里の小女人 提交于 2019-12-20 12:30:10
问题 I am currently writing an R package and using compiled C++ code through the Rcpp package in R (Rcpp makes the interaction of R and C++ code easier for a non-programmer like me, IMHO). I want to debug a few errors in my C++ program using gdb. I have googled and found mainly a few resources on debugging R within emacs, R-FAQ, a few mails here, and definitely the R's Writing R Extension Manual. However, I am doing this for the first time, I could not go too far. Could anyone give me a few

What are good custom keybindings in emacs?

非 Y 不嫁゛ 提交于 2019-12-20 12:23:27
问题 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? 回答1: Emacs actually has a very

Emacs auto-complete-mode at startup

丶灬走出姿态 提交于 2019-12-17 21:58:27
问题 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 回答1: 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

Changing Emacs Forward-Word Behaviour

徘徊边缘 提交于 2019-12-17 10:59:09
问题 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,

Binding M-<up> / M-<down> in Emacs 23.1.1

天涯浪子 提交于 2019-12-17 05:02:14
问题 I'm trying to put in a feature that I miss from Eclipse, where Alt +[ Up / Down ] transposes the lines up or down, but can not for the life of me figure out how to assign to these keys properly. I am using it in -nw mode (so just in a shell window), and typically run in a screen session. Using a global key binding, I can get it to work with letter combinations, like (kbd "M-m") , but every combination I have tried for the arrow keys just gives me a message that doesn't make sense, I always

how to delete region with [delete] key in emacs

只愿长相守 提交于 2019-12-12 11:01:44
问题 I am using Emacs 23.3 on Mac OS X Lion. How can I delete the selected text region with simple key typing—something like delete or C-d ? This works on windows without setting anything specific. How can I implement that in Mac OS X Lion? 回答1: Try M-x cua-mode . This will change a lot of things about the way Emacs behaves to fit the behavior of other GUI applications. For more information, see M-S-: (info "(emacs) CUA Bindings") . You can turn it on persistently with M-x customize-option RET cua