I usually edit text in a terminal using emacs -nw and I notice that when I select a region in emacs -nw and middle-click paste into anything, it copies all the empty characters in the selection as spaces. This also happens if I use the key-binding for Copy and then Paste. For example, if I highlight:
[(column-number-mode) ]
where...
On the Emacs development list there is long thread (you can find it here) about the "Emacs learning curve" (this is the name of the thread). The participants have various opinions about why some people may not want to use Emacs. If you gave an Emacs a try in the past and then chose an other editor/IDE instead then please describe in your...
I'd like to start using emacs but I want also a GUI in which it will be available in windows, ubuntu linux (desktop) and mac osx. Is GNU/Emacs capable for this? What other choices are there and how different is for each OS?
Also is there any disadvantages of using emacs with gui (for example, I can't use some kind of widgets or use som...
I am just beginning on emacs, and have just completed the tutorial. As a longtime Windows user (I am running emacs on Win7), the shortcuts do feel unintuitive, however I had expected that and was prepared to dedicate time to learning the commands.
However, I recently discovered the ErgoEmacs package, and I was wondering whether I should...
I have installed a modified Emacs version for Windows XP from Vincent Goulet and I want to run and edit R scripts contained on a remote Unix server using ess-remote. After a lot of searching I am able to connect to a remote R session in the following way:
Open a shell prompt with M-x shell
enter the following command: plink -X -C usern...
Hi
I would like to translate the following function from vim script to emacs elisp (I use it to set the email recipients when writing emails).
My question is mainly how to get and set line contents in emacs, because with quick googling I could not find this out (probably I just did not know the right terms to google for, "getline" and...
I use Aquamacs, and aquamacs is pre-equipped with slime.
(setq inferior-lisp-program "/usr/local/bin/sbcl") #####!!!
(add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME/contrib")
(add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME")
(require 'slime)
(slime-setup)
As is asked in here, I tr...
As I asked here, I couldn't make it run Aquamacs/slime/clojure, but I could use Auqamacs/clojure with 'M-x conjure-mode', then C-c C-z (run clojure) and C-c C-e (run expression).
I don't have an experience with SLIME, but I feel that C-c C-z and C-c C-e is just enough for lisp/conjure REPL or debugging.
What features SLIME has more th...
I stalled leiningen and run lein swank.
sudo lein deps
lein swank
Aquamacs has everything about SLIME, so it's OK.
Solution to this problem
David helped me to be out of trouble.
As Aquamacs has built-in slime, I didn't need anything complex about the setup. I just needed one line - (slime-setup '(slime-repl)).
...
Hey,
in gedit it's possible to define so-called "snippets" for simpler input.
For example, there is a snippet while. This means: If you type while -> (-> stands for tab key). And gedit automatically converts it to the following (including correct indentation):
while (condition){
}
In vim (in conjunction with latex-suite) I saw the ...
I happen to have two emacs on my Mac because of clojure setup.
The problem is that Cocoa emacs and Aquamacs uses the same ~/.emacs.d, but the ELPA of Cocoa emacs and that of Aquamacs are not compatible so that some files are overwritten and not usable for both of them.
Is there any way to tell Aquamacs not to use ~/.emacs.d for ELPA? ...
I find .emacs, and ~/.emacs.d/init.el.
What those files/directories are for?
What's the startup sequence of emacs? Is there any way that makes emacs not to read ~/.emacs.d?
...
Let's say I have my own elisp code in ~/bin/hello.el.
The ~/.emacs file has the following code to run hello.el at startup.
(add-to-list 'load-path "~/bin/elisp")
(require 'hello)
But, I get the following error message.
Warning (initialization): An error occurred while loading `/Users/smcho/.emacs':
error: Required feature `h...
As is asked and answered here. I could use 'lein swank' to run clojure on Aquamacs.
I need to automate running 'lein swank', before running slime/clojure.
Q : Is there a way to this automatically? I mean how can I run the command 'lein swank' automatically when slime/clojure (M-x slime-connect) is called.
Q : If I have to come up wit...
I like to use M-x sql-mysql to interact with mysql in emacs, but I constantly (and seemingly somewhat sporadically) run into situations where for some reason emacs stops using the full height of a buffer (meaning I'll have some long output, and then the mysql> prompt will be halfway up the buffer, which is frustrating.
Also, I end up h...
I'm developing a django app using aquamacs as my ide. Pdb isn't working since upgrading to emacs 23.2.1 using python 2.6.1. When I invoke pdb like this:
M-x pdb
Run pdb (like this): pdb ./manage.py runserver
The gud-manage.py frame appears with this message (and nothing more) -
Current directory is /path/to/my/source/
It isn't resp...
I'm attempting to run P4V commands directly from xemacs.
After pulling in the p4.el to emacs I've written the following:
(defun p4v-command (cmd)
(get-buffer-create p4-output-buffer-name);; We do these two lines
(kill-buffer p4-output-buffer-name) ;; to ensure no duplicates
(call-process "p4v" nil (get-buffer-create p4-output...
I created my own color theme using this website. I've added a new .el file to my ./site-lisp/color-theme/themes directory with the following code:
(defun your-config-name-here ()
(interactive)
(color-theme-install
'(your-config-name-here
((background-color . "#ffffff")
(background-mode . light)
(border-color . "...
I have CEDET 1.0pre7 set up with emacs 23.1, and I want to use it to manage irrlicht programs. I am pretty new at writing non-academic C++ code, and makefiles. I got the following makefile to work for me:
game.exe: game.o
g++ game.o -o game.exe -L "D:/irrlicht/irrlicht-1.7.1/lib/Win32-gcc/" -l Irrlicht
game.o: game.cpp
g++ -c ga...
As explained in here, putting (setq default-directory "~/Desktop/mag" ) in .emacs is supposed to change the default directory.
When I do that with the emacs on my mac, it doesn't work. C-x C-f still shows ~/ not ~/Desktop/mag.
(cd "Users/smcho/Desktop/mag") also gives me this error - Error: No such directory found via CDPATH environm...