emacs

Selecting text in emacs no-window and using X copy/paste pastes extra spaces

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...

For what reasons you DON'T use Emacs?

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...

Emacs GUI for Mac, linux and windows

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...

Should I start out learning emacs with ErgoEmacs?

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...

Double prompt and garbled R help with remote R on WinXP emacs

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...

get and set line content in emacs buffer programmatically

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...

Running clojure and other lisp at the same time on emacs.

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...

What are the good things about slime?

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...

Running clojure with 'lein swank' on Aquamacs problem.

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)). ...

Emacs: Enter commands like in gedit

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 ...

Using two emacs (Cocoa emacs and Aquamacs) at the same time

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? ...

What's the startup sequence for emacs?

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? ...

Running my own code when during Emacs startup

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...

Running 'lein swank' (calling clojure server) with elisp

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...

Emacs sqli-mode (mysql) and keeping the output aligned / cursor aligned correctly?

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...

How to fix pdb in Aquamacs on Mac OS X?

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...

Problem with emacs lisp shell process arguments.

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...

emacs color-theme problem

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 . "...

Setting up CEDET/EDE to work with Irrlicht

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...

Change the default directory of emacs with 'cocoa emacs'

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...