emacs24

How to add a tool-bar button in emacs?

别来无恙 提交于 2019-12-01 07:54:36
问题 I try to add a button in the tool-bar but that doesn't works. how to do that, i check in Emacs wiki and i find nothing. I used emacs 24.3.1. The toolsbar are displayed but not my new item. I can run it with eval-buffer but not with my .emacs or find another solution to resolve that. When i add it with eval-buffer my button leave my toolbar after a scroll. (defun omar-hotel () "another nonce menu function" (interactive) (message "hotel, motel, holiday inn")) (define-key global-map [tool-bar

eterm-color: Unknown terminal type

北慕城南 提交于 2019-11-30 07:17:30
In an ansi-term terminal in Emacs, when I ssh to a specific remote host, the terminal is not recognized properly, and I get the error: 'eterm-color': unknown terminal type. I added export TERMINFO=~/.terminfo to .bashrc on the remote machine, and I have tried the following on the remote machine: cp -r /usr/share/emacs/21.4/etc/e ~/.terminfo Just in case, I also tried copying over my own local copy of /etc/e (Emacs 24.3) to ~/.terminfo on the remote machine. Also, in case it matters, if I try infocmp on the remote machine, I get: >infocmp infocmp: couldn't open terminfo file /usr/share/terminfo

Reading email (from gmail) in emacs 24

走远了吗. 提交于 2019-11-29 19:58:14
What's the current authoritative way to check and send email in emacs 24? I've checked the following SO links: Setup for Gmail in Emacs VM https://superuser.com/questions/476714/how-to-configure-emacs-smtp-for-using-a-secure-server-gmail Which Emacs mail package should I use? And understand the packages smtpmail , rmail , are involved, as well as an .authinfo file . I have created an .authinfo file of the form: machine mail.example.org port 25 login myuser password mypassword And have added the following to my init.el file: (setq smtpmail-stream-type 'ssl) (setq smtpmail-smtp-server "smtp

gud-gdb emacs 24 not working

六月ゝ 毕业季﹏ 提交于 2019-11-29 13:42:39
I'm having difficulties with gdb under emacs 24. I compiled my c code with the -g switch, and the symbol table loads in gdb. The problem I'm having is that no source code is shown when I load my application, no breakpoints are visible. I guess there appears to be no connection between the source code buffer and gdb buffer. I have used gdb under emacs before (emacs 22, and 23) and it worked well and now it doesn't. I also tried it under emacs -q so no plugins are loaded in case my .emacs was at fault, no joy. Just to recap (so I don't get "compile with -g" answers): I compiled with -g I loaded

Setting Emacs 24 color theme from .emacs

ⅰ亾dé卋堺 提交于 2019-11-28 15:59:10
问题 I have the following code in my .emacs: (if (null window-system) (progn (require 'color-theme) (color-theme-initialize) (color-theme-simple-1))) When I open Emacs on the console, I can verify that the progn block runs (by a (message "Got here.") ), and I see a flash that suggests that the color theme was loaded, but if it was loaded, it is overridden by something else. If, after loading, I open my .emacs file and submit the block above using C-x C-e , it works. I've tried doing: (add-hook

Reading email (from gmail) in emacs 24

五迷三道 提交于 2019-11-28 15:47:24
问题 What's the current authoritative way to check and send email in emacs 24? I've checked the following SO links: Setup for Gmail in Emacs VM https://superuser.com/questions/476714/how-to-configure-emacs-smtp-for-using-a-secure-server-gmail Which Emacs mail package should I use? And understand the packages smtpmail, rmail, are involved, as well as an .authinfo file. I have created an .authinfo file of the form: machine mail.example.org port 25 login myuser password mypassword And have added the

gud-gdb emacs 24 not working

纵饮孤独 提交于 2019-11-28 08:00:16
问题 I'm having difficulties with gdb under emacs 24. I compiled my c code with the -g switch, and the symbol table loads in gdb. The problem I'm having is that no source code is shown when I load my application, no breakpoints are visible. I guess there appears to be no connection between the source code buffer and gdb buffer. I have used gdb under emacs before (emacs 22, and 23) and it worked well and now it doesn't. I also tried it under emacs -q so no plugins are loaded in case my .emacs was

Disable warning about emacs.d in load path

荒凉一梦 提交于 2019-11-27 13:59:38
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-level :error) , but I would prefer to get rid of this as soon as possible) Don't disable the warning. It

Emacs 24 Package System Initialization Problems

喜欢而已 提交于 2019-11-26 11:44:12
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-x chord. It requires you to define a key for M-x , so I added (global-set-key (kbd "M-x") 'smex) in my