emacs24

How to generate dynamic “Reply-To:” based on “Message-ID:”? [+detail]

这一生的挚爱 提交于 2020-01-01 08:53:26
问题 How can you generate a dynamic "Reply-To:" (and "From:") header in emacs/gnus based on Message-ID of the created message ? I would like to use external (perl) script to generate a dynamic +detail part based on the "Messaged-ID:" header. user+detail@example.net I have managed to create a header with content generated by my external script. The script gets usenet group name as command line parameter. I would like to pass it the message-id value too. My current code ~/.emacs : '(gnus-posting

How to remove an installed package in Emacs (ver 24+)?

混江龙づ霸主 提交于 2019-12-31 08:33:54
问题 I'd like to remove several packages that I've installed. When I invoke package-list-packages , I notice that there is a ' d ' (mark for deletion) command and an ' x ' (execute). However, it seems like this simply removes the package name/description from the list and not the actual files under ~/.emacs.d/elpa . What am I doing wrong or missing? Surely there must be some way to remove installed packages. 回答1: The command package-menu-mark-delete (key 'd') followed by package-menu-execute (key

Disable warning about emacs.d in load path

北城余情 提交于 2019-12-28 04:04:02
问题 In latest version of ̀ emacs ( from 24.3.50 snapshot) there is a warning at startup when .emacs.d happens to be in the load path. Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory: ~/.emacs.d/ This is likely to cause problems... Consider using a subdirectory instead, e.g.: /home/adriean/.emacs.d/lisp Is there a way to disable just this warning? (since I wanna keep my emacs.d in the load path, for now as a quick brute hack I went for (setq warning-minimum

Disable warning about emacs.d in load path

前提是你 提交于 2019-12-28 04:03:33
问题 In latest version of ̀ emacs ( from 24.3.50 snapshot) there is a warning at startup when .emacs.d happens to be in the load path. Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory: ~/.emacs.d/ This is likely to cause problems... Consider using a subdirectory instead, e.g.: /home/adriean/.emacs.d/lisp Is there a way to disable just this warning? (since I wanna keep my emacs.d in the load path, for now as a quick brute hack I went for (setq warning-minimum

Emacs 24 Package System Initialization Problems

自闭症网瘾萝莉.ら 提交于 2019-12-27 10:38:31
问题 It seems to me that the new Package system that is built-in on Emacs 24 has some flaws when it comes to properly loading and initializing the installed packages. Recently, I upgraded to Emacs 24.1.1 which was realeased on 6/10/2012 and I have been trying to use the built-in package system and have installed several packages using it, but they all have a similar problem related to autoload and initialization. For example, I use a package called smex which provides enhancements for using the M

Super key binding in emacs

旧街凉风 提交于 2019-12-23 07:58:02
问题 (global-set-key (kbd "<s-d>") 'duplicate-line) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECB MODE;;;;;;;;;;;;;;;;;;;;; (global-set-key (kbd "<s-left>") 'ecb-goto-window-methods) (global-set-key (kbd "<s-right>") 'ecb-goto-window-edit1) (global-set-key (kbd "<s-down>") 'ecb-goto-window-history) (global-set-key (kbd "<s-up>") 'ecb-goto-window-sources) (global-set-key (kbd "<s-home>") 'ecb-goto-window-directories) This is part of my .emacs file. I am facing a strange problem while binding a

Emacs: Set writeroom mode as default

久未见 提交于 2019-12-22 09:52:14
问题 I am new to emacs and I am wondering if I can set the writeroom-mode to always be on. I want it to be on as I start up emacs and as I open new buffers or switch between them. All help is highly appreciated! 回答1: So now that you've provided a link (albeit in your other question), I can see that the library provides a global minor mode which only turns itself on for a specific configurable set of major modes. The following will redefine the function which makes that decision, so that if the

emacs 24 on windows 7, tramp cannot find plink program

邮差的信 提交于 2019-12-21 20:26:11
问题 I am trying to use Emacs 24.2 with Tramp on windows 7 to remotely edit files on a linux server. I installed the Putty suit program and OpenSSH. I also placed the plink.exe in the putty suit into the bin folder under the emacs 24 folder, and added the folder emacs24/bin into the PATH environment variable. However, when I try to access the remote file from emacs with the command in the minibuffer: /username@host:filename, I get the following error message from emacs: plink is not recognized as

IPython auto-completion emacs24 doesn't work

守給你的承諾、 提交于 2019-12-21 14:17:09
问题 I'm using emacs24.0.92 with IPython 12. I took ipython.el file from IPython repository and also tried this patch however auto-completion still does not work for me. Can someone give any hint about it ? 回答1: That's an old question but since I was looking for it: 1- python-mode.el A quick search lead me to this working solution: http://www.emacswiki.org/emacs/PythonProgrammingInEmacs#toc5 2- jedi You still can use the completion given by jedi.el : http://jedi.jedidjah.ch/en/latest/ http:/

Emacs org-mode export markdown

落花浮王杯 提交于 2019-12-20 09:51:01
问题 I have some weird behavior, I don't actually know if it's a bug or something else. When I do C-c C-e the option to convert to markdown doesn't appear. Nonetheless I can type the option M-x org-md-export-as-markdown and after I do that, the option export to markdown appears in the C-c C-e menu. Any Ideas? 回答1: If you are using Org-mode version 8.0 or later (check with M-x org-version ), the export framework is broken up into several libraries that are not necessarily loaded by default.