Stream

Join this community to post or comment

Mandar Gokhale

Discussion  - 
 
An Emacs quirk that I saw today – we usually think of C-u as providing a numeric prefix argument for a function, i.e. `C-u 10 M-x this-function`. I didn't know, however, that passing `C-u` without an argument would default to 4.(https://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html).

I tracked this down to simple.el. "C-u runs the command universal-argument, which is an interactive
compiled Lisp function in `simple.el`." Without the comments, it looks like:

```
(defun universal-argument ()
"Begin a numeric argument for the following command."
(interactive)
(setq prefix-arg (list 4))
(universal-argument--mode))
```

Anyone have further comments / insights about this? I wonder if there is a reason if 4 is the default here, and I don't completely understand how the last snippet above works.
20.12 Prefix Command Arguments. Most Emacs commands can use a prefix argument, a number specified before the command itself. (Don't confuse prefix arguments with prefix keys.) The prefix argument is at all times represented by a value, which may be nil , meaning there is currently no prefix ...
4
Greg A. Woods's profile photoMoe Bius's profile photo
5 comments
 
+Luis Miguel Castañeda Navas
Didn't know that. Next time I need 64 of any character ...
Add a comment...

John Cook

Discussion  - 
 
How to create ASCII art diagrams in org-mode with ditaa
5
Felix Albrecht's profile photoJim Franklin's profile photo
4 comments
 
thx :thumbsup:
Add a comment...

bin chen

Discussion  - 
You can M-x toggle-input-method or C-\ to input Non-English characters. Analysis about evil-mode, You only input Non-English characters in evil-insert-state. So you need go into evil-insert-stat
1
Add a comment...

Kinley Dorji

Discussion  - 
 
At last! Emacs that actually works on Android. Great job!

I've been wanting to use org-mode on my phone for a long time and now it looks like I can in a practical way. Armed with my ancient Galaxy Nexus (loaded with Lollipop) but aided with a Bluetooth keyboard.

This is made possible by +Fredrik Fornwall and his awesome Termux app. The Google+ Termux Commuity is here:  https://plus.google.com/u/0/communities/101692629528551299417
As Android phones rise in power, bluetooth keyboards become cheaper, and your addiction to Emacs grows, it’s only natural that you start thinking of combining the three. Fortunately for you, it’s not as hard as it used to be. In fact, it’s perfectly possible to reproduce (most of) your desktop config, if you know how to get past a few obstacles.
39
14
shih tsou's profile photoKam-Yung Soh's profile photoli woodboy's profile photoAllen Wang's profile photo
10 comments
 
Kudos
Add a comment...

Alison Chaiken

Discussion  - 
 
The real question is . . . . does it work with emacs?
What can I tell you about the 20 hours I spent running through primeval forests, chasing down a saber-toothed tiger? I can tell you that it was different for me than it was for the vast majority of...
9
Tariq Kamal's profile photoAlison Chaiken's profile photo
6 comments
 
+Tariq Kamal well yes, but since I work on Linux for DAYJOB, I know that the part you quote is necessary but not sufficient.

+Yuri Khan thanks for the quantitative response.   I eagerly await the practical immersive Linux experience of the future!   I'magine how glaring 'visual bell' would be.   I guess I'll need a second init.el version for the Glyph2.
Add a comment...

bin chen

Discussion  - 
 
http://blog.binchen.org/posts/what-s-the-best-spell-check-set-up-in-emacs.html

Change log:

- aspell option "--run-together" make aspell good to detect camel cased words but less capable to find typo in plain english. So should turn off the option in text-mode-hook. 
UPDATED: <2016-03-14 Mon> CREATED: <2014-04-26> I will show you the minimum spell check setup for programmers and non programmers at first. Then I will explain why it is better. Topics cov
3
Add a comment...

Didier Verna

Discussion  - 
 
As per some authors request, the #ELS2016 submission deadline has been extended to Saturday Feb 27. One more week to submit a paper! #lisp
1
Add a comment...

Alison Chaiken

Discussion  - 
 
 
this machine, is where vi is developed. The monitor is capable of displaying 80×24 chars
http://xahlee.info/kbd/vt100_terminal.html
the glorious VT 100, introduced in 1978. DEC VT100 terminal 2013-08-30 7ea01a58 DEC VT100 terminal. 〔photo by Jason Scott https://www.flickr.com/photos/54568729@N00/9636183501 © 〕 2776×2464. It's got 80×24 characters screen. DEC VT100 terminal 2013-08-30 44908 DEC VT100 terminal.
16
1
Clayton Haapala's profile photoRyo Cook's profile photoMark Phelan's profile photo
4 comments
 
You won't believe it, but I have one of those in my cellar. I never could push myself to throw it away. I had this connected to my Amiga as a debugging console for some time.

Add a comment...

ErgoEmacs

Discussion  - 
 
enjoyed this video. great presentation. It's about how a vim guy for 15 years switched to emacs+evil-mode for good. Very nicely done presentation.
20
5
Mark Phelan's profile photozloy tapok's profile photoTulio Magno Quites Machado Filho's profile photoPatto Cheng's profile photo
3 comments
 
I've been test driving Spacemacs all day because of this video. I'm not sure if I should take the plunge into Emacs and install evil and other plugins myself yet, but it's really nice so far.
Add a comment...

Felix Albrecht

Discussion  - 
40
10
Angela DeBry's profile photoPeter Galbraith's profile photoGiacomo Indiveri's profile photoalain leufroy's profile photo
3 comments
 
Old as it may be, that explains most of what is wrong with the Universe :)
Add a comment...

Alex Schroeder

Discussion  - 
 
I always keep going back to Planet Emacsen. So many interesting blog posts. Plus, Emacs News by +Sacha Chua. Also, not too active. Perfect for me. http://planet.emacsen.org
weather from wttr.in (use-package wttrin :ensure t :commands (wttrin) :init (setq wttrin-default-cities '("Cheltenham" "Bristol"))). This sets the list of available cities. You can then use M-x wttrin to see the weather. This will prompt for the city and then show a buffer with the forecast.
15
Add a comment...

Leu Zhe

Discussion  - 
1
Alex Schroeder's profile photo
 
Maybe it should be a customizable variable? That would allow you to run code when it is set (via custom-set, not via set or setq). 
Add a comment...

Nicolas Couture

Discussion  - 
 
 
Emacs libraries for Python development.

(Please comment if you can think of other ones that are essential to you)

There are many libraries for enhancing Python development in Emacs but here's a list of the ones I use primarily:

- Elpy (https://github.com/jorgenschaefer/elpy)
- Pyvenv (https://github.com/jorgenschaefer/pyvenv)
- Auto PEP8 (https://github.com/paetzke/py-autopep8.el)
- Yasnippet (https://github.com/capitaomorte/yasnippet)

P.S. thanks +Jorgen Schäfer ! :-)
elpy - Emacs Python Development Environment
3
1
Gaurav Verma's profile photoRafael Santos's profile photospecops872's profile photo
5 comments
Add a comment...

Antoine Rouyer

Discussion  - 
28
7
Andrew Grytsenko's profile photoGiacomo Indiveri's profile photoPeter Foldi's profile photoMartín Calveira's profile photo
9 comments
 
I’ve seen the name “root” once or twice… :)
Add a comment...

Sylver Stone

Discussion  - 
 
Hey! xe.. check this [1] out, pls...
[1] http://www.gnuvola.org/software/edb/
1
Sylver Stone's profile photoNguyen Vinh Linh's profile photo
3 comments
 
Oh I see :D 
Add a comment...

胡傲果

Discussion  - 
 
Is there a way to write a editor which could run all emacs' mode but display with a webkit, so we could make emacs gui more beautiful?
1
Jonathan H's profile photoHarvey Smith's profile photo
16 comments
 
+Jonathan H You and I are defining UI differently, I'd call that content. What I call the interface is how you interact with that content. Text mode keystrokes, graphically with a mouse or fingers tapping, or conversationally, as in Alexa and so forth. Back on topic. When I look at screenshots of Atom themes they don't look all that different then what I am getting with Emacs. (for example https://atom.io/themes/robin-hood-syntax)

The big attraction with atom.io (from what I've heard), is that it is written in javaScript which is a much more common language with the kids these days than Lisp is.
Add a comment...

Junwei Wang

Discussion  - 
 
It's really a brilliant idea to use emacs as a server. Emacs is too heavy to start quickly. With emacs-server, we don't have to reload everything when use emacs as you EDITOR environment. Besides, we can edit a file in a quite quick way!!!
7
1
Alexander Phoenix (a13ph)'s profile photospecops872's profile photo
15 comments
 
+Yuri Khan probably just the usual (setq default-input-method "cyrillic-jcuken"). And he was using typographical layout too.
Add a comment...

ErgoEmacs

Discussion  - 
 
#emacs tip.
press esc once to do cancel.
(define-key key-translation-map (kbd "ESC") (kbd "C-g"))
3
Andrew Kirkpatrick's profile photoErgoEmacs's profile photo
5 comments
 
+Andrew Kirkpatrick if you use terminal much, better is to set it up properly, so you have Alt sending Meta. Emacs has critical keys with meta, such as move by word, which needs to be held down. Esc as meta can't do that.

but otherwise, if you occasionally need to use terminal and it doesn't have Alt set up and you can't do that for some reason (e.g. constantly on other people's machine), then, not set esc for C-g then... it's a tradeoff we have to make.

ps above just my opinion.
Add a comment...

bin chen

Discussion  - 
Workgroups2 will load previous windows layout by default. That's handy for most developers. But as a freelancer I am always assigned the low spec machine which takes too much time to load the old l
4
Add a comment...

bin chen

Discussion  - 
I love Ivy-mode/Swiper because it's quick and easy to extend. I replaces my Helm setup to ivy-mode setup. I will demostrate how I use ivy-mode at first. Then I will give the full code. Please no
1
1
Ilya Kalashnikov's profile photo
Add a comment...