In Emacs We Trust! :-)
See all
Members (8,881)

## Stream

Join this community to post or comment

### Chunbo Chen

Customization  -

I enabled elpy for python programming in emacs 24.4, simply add:
(add-hook 'python-mode-hook 'elpy-enable)
in .emacs

I start emacs server: emacs --daemon
then I use emacsclient to open a .py file, edit and exit emacs client. Everything is OK till now.

But when I use emacsclient to open any  .py files again, the color format is not correct any more, looks like messed up.

If I don't use emacsclient, everything works fine. Also tried not to enable elpy and use emacsclient, the color won't mess up. Is there any compatibility issue with emascclient and elpy?﻿

I also found auto-complete cannot pop up under emacsclient, any one has the same problem with me?﻿
2 photos
1
1
2 comments

thanks, Aleksey, I wasn't aware of the warnings of the codes,  I thought there is some problem with my settings. thanks very much.﻿
Add a comment...

### Gaurav Verma

Customization  -

Though choosing a theme is mostly a personal choice, and I have tried many themes (including popular zenburn, solarized) but leuven is just fantastic light theme; like one more reason to stay at Emacs. Any different takes?﻿
2
8 comments

same here, I had been using adwaita as well!﻿
Add a comment...

### Max Polk

Customization  -

Symmetric crypto on a region.  Super simple, fast, easy!﻿
2

Appears to be small enough to include here. Feel free to delete this comment if you prefer to get the the hits on Pastebin (?!) or, more likely, if G+ garbles this:

;; Easiest symmetric crypto for region of text.
;;
;; Mark start of region, move cursor to end of region, then
;; hit either M-f11 to encrypt, or M-f12 to decrypt.
;; Try alternating between both (without moving cursor) to
;; see the text morph from cleartext to encrypted text back
;; and forth.
;; After encrypting you can copy or kill without moving cursor.
;; Or after pasting encrypted into buffer, hit M-f12 to decrypt
;; since pasted region is already marked. Short, simple, easy.

;; Needed for below functions
(require 'epg)

;; Encrypt region with default password
(defun symmetric-encrypt-region (&optional n)
"Encrypt region using symmetric crypto."
(interactive "P")
(let ((plain (delete-and-extract-region (point) (mark))))
(insert-string (epg-encrypt-string (epg-make-context nil t) plain nil))))
(global-set-key [M-f11] 'symmetric-encrypt-region)

;; Decrypt region with default password
(defun symmetric-decrypt-region (&optional n)
"Decrypt region using symmetric crypto."
(interactive "P")
(let ((cipher (delete-and-extract-region (point) (mark))))
(insert-string (epg-decrypt-string (epg-make-context nil t) cipher))))
(global-set-key [M-f12] 'symmetric-decrypt-region)﻿
Add a comment...

### Sylver Stone

Customization  -

Hey, txe!
So useful!
PS (Thanks Tobias)﻿
2

;;; Display full pathname for files.
(add-hook 'find-file-hooks
'(lambda ()
(setq mode-line-buffer-identification 'buffer-file-truename)))﻿
Add a comment...

### Rock X Loose (EELV)

Customization  -

The eww mode for https://developers.whatwg.org is unreadable or the color theme is wrong in my setup. ﻿
2
3 comments

Answer was: Damn. Never noticed this before… it could be because of bad data on the last deploy.
Right now we're unable to regenerate the spec because the source document is no longer available, so this issue will have to be put on the back burner [sloppy is how I characterize that]﻿
Add a comment...

### Alex Schroeder

Customization  -

I have used iswitch-buffer for many years. With Emacs 24.4 it has been marked obsolete and I was told on emacs-devel that icomplete-mode would be its successor. I've tried using it for weeks, now. There are so many annoyances, I don't even know where to start. It begins with me trying to save the content of a buffer such as scratch into a non-existing file. Of course there is completion for directories but not for files... #fail. So, what do you use instead? ido-mode?﻿
3
1
17 comments

icomplete-mode tries to provide the main niceties of iswitchb, while still not going too far from the default interface. I think that's a worthy goal, even if so far I also prefer Ido myself.

Unfortunately, people are too quick to switch, instead of filing bug about the annoyances they encounter (not just you), so it's possible that they'll never be fixed. And naturally, the one annoyance that you have cited ("Of course there is completion for directories but not for files..."), I cannot reproduce: I see completions for files, just as well as for directories, in save-buffer' and other file-related commands.﻿
Add a comment...

### Shingo Fukuyama

Customization  -

Why don't you refresh your Emacs.app icon for a change?
I'm still in Mac OS X Mavericks but it might work in Yosemite.

Four steps to setup
1. Download icns file from http://fukuyama.co/d/emacs/Emacs.icns
2. Input and run open /Applications/Emacs.app/Contents/Resources/ in the Terminal.app to open in Finder.app
3. Replace Emacs.icns` file with the file you downloaded in step 1 (It would be good to set aside the original .icns file)
4. Restart your Mac

Enjoy your happy Emacs life!

-------------------------
Yosemite like Emacs icon, inspired by:
* ahmad seleem 's Tweet https://twitter.com/ahmadSeleem/status/527983358081376258
* Numix Project 's post https://plus.google.com/+VibhavPant/posts/RSWgub855fT?pid=5967287340480621906&oid=115833527622591803679﻿
2
1
5 comments

Looks like this is the only way: http://www.emacswiki.org/emacs/EmacsForMacOS#toc22 It'd be nice If apps on OS X can change icons more easily...﻿
Add a comment...

### Rock X Loose (EELV)

Customization  -

Here's the recipe to set Caps Lock as Control and set other modifier keys on Ubuntu's Window's keyboard to be not too different than on a Mac. ﻿
8
1
Add a comment...

### Rock X Loose (EELV)

Customization  -

Using Caps Lock for Control to avoid confusion and discomfort of Fn and Ctrl keys depending on keyboards with/without Fn. After one day's use I can conclude Caps Lock for Control makes more sense. Control-L lines up nicely and c-x, c-a, c-b, c-e, c-j, c-k, etc, feel much more comfy. ﻿
3
4 comments

> Anything is possible

I mean there is a setting in the BIOS which does allow to swap Ctrl and Fn (Thinkpad T420s).﻿
Add a comment...

### Dylan Thiedeke

Customization  -

My first little customisation in emacs for org-mode http://blog.thiedeke.com.au/emacs/playing-with-emacs/﻿
I've always flirted with emacs to some degree but I really wanted to start pursuing it proper, starting with the awesomeness that is org mode. org-mode is basically a way to track and manage tasks. Of course is does WAY more than that but I'm only a noob so I have much to learn.
1
Add a comment...

### Peter Eisentraut

Customization  -

I changed my global default for indent-tabs-mode to nil now and just re-enabled it for some specific modes. I got tired of having to disable it for every mode separately.  So far, I have only found a need to enable it for c-mode, sh-mode, and text-mode (on the fence about that last one).﻿
1
3 comments

Even other editors should have settings that can preserve the indentation. I actually prefer tabs over spaces because you can set your own tab width the way you prefer. That said, most of the projects that I work on use spaces instead of tabs, so I generally use spaces.﻿
Add a comment...

### ErgoEmacs

Customization  -

you can make emacs show arbitrary text as math symbols such as {lambda λ ,-> →, => ⇒, map ↦, …}
Emacs: Pretty Lambda λ in Emacs 24.4
http://ergoemacs.org/emacs/emacs_pretty_lambda.html﻿
Emacs 24.4 has a nice prettify-symbols-mode . In lisp modes, it displays lambda as “λ”. 〔➤ New Features in Emacs 24.4〕. emacs pretty lambda 26110 emacs prettify-symbols-mode. Call prettify-symbols-mode to activate it. Open a emacs lisp file. (For example, call describe-function 【 F1 f 】 ...
8
1
2 comments

You can also use input methods (such a TeX) to type unicode characters. E.g. typing \lambda when using TeX input method creates a unicode lambda.

‘M-x set-input-method’﻿
Add a comment...

### Alison Chaiken

Customization  -

For you Emacs-loving Linux kernel developers out there:

[PATCH] CodingStyle: enable emacs display of trailing whitespace
From: alison@she-devel.com
To: linux-doc@vger.kernel.org
Sunday, January 25, 2015 19:26

From: Alison Chaiken <alison_chaiken@mentor.com>

Suggest to developers who use emacs that they turn on the
instantaneous trailing-whitespace warning feature.

Signed-off-by: Alison Chaiken <alison_chaiken@mentor.com>
---
Documentation/CodingStyle | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index 618a33c..f47ff74 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@-527,6 +527,7 @@ values.  To do the latter, you can stick the following in your .emacs file:
(string-match (expand-file-name "~/src/linux-trees")
filename))
(setq indent-tabs-mode t)
+               (setq show-trailing-whitespace t)
(c-set-style "linux-tabs-only")))))

This will make emacs go better with the kernel coding style for C
This message was sent with High importance.

--
2.1.4﻿
10
8 comments

whitespace-mode is more powerful than show-trailing-whitespace.  It also shows whitespace messes at the beginning of the line.﻿
Add a comment...

### Alexey Cherkaev

Customization  -

Using Emacs Orgmode with MIT-Scheme

Following up the question on StackOverflow:

http://stackoverflow.com/questions/26578152/use-mit-scheme-instead-of-guile-for-org-mode-code-block-evaluation

Here is the workaround solution (exposing a bug in current implementation):

https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/﻿
4
1

Could I use guile to compile MIT-Scheme?﻿
Add a comment...

### Sylver Stone

Customization  -

Hi, Group!
Would someone know to tell how-to might I highlighting e.g.  files from directories when at Mx-shell mode, please??﻿
1
4 comments

Also, since TERM is "dumb" in shell mode, you have to trick dircolors, used by "ls", into thinking that's an acceptable terminal to show colors.  I do that by putting "TERM dumb" at the top of the temp file, followed by the normal dircolors content, so in my .bash_profile:
X=$(mktemp) echo "TERM dumb" >$X
dircolors -p >> $X eval$(dircolors -b $X) rm$X﻿
Add a comment...

### Dave Taht

Customization  -

Does anybody but me use the emacs interface to gnugol? It's way faster than using eww to search, but could be better integrated.

https://github.com/dtaht/Gnugol﻿
Gnugol - Command line web search client with org, markdown, ssml, plain text output
4
3
9 comments

, the first line of the github gnugol page reads

"Command line web search client with org, markdown, ssml, plain text output
http://gnugol.taht.net"

:)﻿
Add a comment...

### Anan Mikami

Customization  -

A humble script: Send a received jabber message to notification center on OS X.

(defun darwin-jabber-message-default-message (orig-fun &rest args)
(let* ((text (car args))
(from (last args))
(command (format "osascript -e 'display notification \"%s\" with title \"%s\"'" from text)))
(shell-command command)))

(advice-add 'jabber-message-default-message :around #'darwin-jabber-message-default-message)﻿
5
2 comments

jabber-20141031.1155 from the melpa. It also known as jabber.el. http://emacs-jabber.sourceforge.net/﻿
Add a comment...

### Rock X Loose (EELV)

Customization  -

I guess I should have used this instead of using xev and xmodmap. ﻿
1
1
red hot

wow﻿
Add a comment...

### Eric S. Johansson

Customization  -

need to pass a region through a filter. The goal is to replace the region with the output of the filter. What I created was this:

(defun swapitout (call-process-region
start end
"/usr/local/bin/pbs_template.py"
nil t
))

and it barfs with wrong number of arguments when invoked by M-:

help?﻿
1
8 comments

Thank you for the suggestion to look up the implementation of C-u M-|. I will do that when I get back to this project.

This is a small piece of a much larger project. It is difficult developing a new paradigm for programming using speech recognition. So much of the work has been focused on speaking the keyboard or mapping speech onto existing user-interface models. I'm trying to map the problem onto how speech works as a result, I'm developing (albeit very slowly) a very different solution.

The next small bit I need is how to trigger execution of my swapitout function after Emacs is idle for 0.5 to 1.5 seconds﻿
Add a comment...

### Yuriy Pitometsu

Customization  -

On my new laptop PrtSc key on place of right super. So can I map it for super in #Emacs to use as a modifier? Or system-wide way only? I'm on Linux.﻿
1
11 comments
Add a comment...