Stream

Join this community to post or comment

Xi Xiao

Discussion  - 
 
Vi mode mimic vim
I am following a great vim book and for each practice I try both in vim and emacs+vi. For most of functions, vi mode works as expected but there are about 10% - 20% either not working or not working correctly. I refer to important and useful functions such as jumping-between-parenth with "%",  visual mode select then paste with "p", command-line mode. 
How are you guys' experience with vi v.s. vim?
1
Xi Xiao's profile photo
Xi Xiao
 
it seems the evil mode version in spacemacs supports better... I will give spacemacs a try now!
Add a comment...

ErgoEmacs

Discussion  - 
 
commands that save you keystrokes.
Emacs: Copy/Cut All or Selection
http://ergoemacs.org/emacs/emacs_copy_cut_all_or_region.html
new.

Emacs: Copy/Cut Current Line If No Selection
http://ergoemacs.org/emacs/emacs_copy_cut_current_line.html
This page shows you emacs commands to copy/cut whole buffer, or text text selection if there's one. Copy All or Text Selection. (defun xah-copy-all-or-region () "Put the whole buffer content to `kill-ring', or text selection if there's one. Respects `narrow-to-region'.
3
Sylver Stone's profile photoErgoEmacs's profile photo
4 comments
 
+Sylver Stone for efficient emacs keybinding systems, i need specific commands to save keystrokes.

in xah fly keys, without this command, the key to copy all is 【home menu m q】.
(【home】 to switch to command mode, 【menu m】 calls universal-argument, q is for copy)

with this command, it's just 【menu q】.
Add a comment...

Win Treese

Discussion  - 
 
imenu+ vs. imenu-anywhere

It seems that if imenu+ and imenu-anywhere are both loaded, calling imenu-anywhere throws an error:

imenu-anywhere--candidates-from-entry:
    Wrong type argument: integer-or-marker-p,
    (IGNORE (lambda (&rest _ignore) (imenup-toggle-case-sensitive-sorting)))
    
This has something to do with the way that imenu+ redefines some imenu functions, but I haven't chased it down beyond that.
1
Win Treese's profile photo
3 comments
 
Update: thanks to quick work by the authors of both packages, imenu-anywhere and imenu+ now play nice together! The change is in the latest imenu-anywhere, available on github and through MELPA.
Add a comment...

ErgoEmacs

Discussion  - 
 
#emacs #lisp emulates real typing 
https://gist.github.com/howardabrams/b5dc2082bcce46fdc9b8 

replace (string-empty-p str) by (equal str "")
5
ErgoEmacs's profile photoNick Alcock's profile photo
8 comments
 
I was trying to be completely pedantic and suggest a way of actually imitating a person actually typing, which "insert" cannot do. This is of course completely useless: we already have the keyboard macro system. :)
Add a comment...

ErgoEmacs

Discussion  - 
 
try this. blind fold yourself. Use your favorite language, favorite editor, write “hello world”, and run it. Did you succeed?
1
Jonathan H's profile photoPetr Machata's profile photo
5 comments
 
Or m4!
Add a comment...
 
Sorry if this was posted before, but .... Use Emacs as a tiling window manager...? This is facinating.  I have been skirting around WMs like awesome and ratpoison, wishing they were scripted with LISP...
exwm - Emacs X Window Manager
6
Add a comment...

Gaurav Verma

Discussion  - 
 
 
FSF's 30th Birthday Party: https://fsf.org/fsf30/celebration What's your plan?
#FSF30  
265 votes  -  votes visible to Public
Going to Boston!
6%
Having Local Party!
14%
No Party
80%
2
Add a comment...
 
Hi, emacs newbie here..
I want to switch from vim to emacs+evil.
This is my workflow for navigate split buffer in vim, I want to convert it into emacs lisp configuration but It doesn't work.

nnoremap wh <c-w>h
nnoremap wj <c-w>j
nnoremap wk <c-w>k
nnoremap wl <c-w>l

(key-chord-define evil-normal-state-map "wh" 'evil-window-left)
(key-chord-define evil-normal-state-map "wj" 'evil-window-down)
(key-chord-define evil-normal-state-map "wk" 'evil-window-up)
(key-chord-define evil-normal-state-map "wl" 'evil-window-right)

I try to use key-chord mode, but it seems only work for insert state. is it possible to do like this in evil? or it's evil limitation.
1
1
Tima Umurzakov's profile photoDian Hanifudin Subhi's profile photoAlexander Petrov's profile photo
2 comments
 
+Tima Umurzakov Thanks, It's works. But it will break w movement, so I use ace-jump as alternative. Actually, I use the emacs.d from nathantypanski as my reference too.
Add a comment...

Sylver Stone

Discussion  - 
 
Hi, people!
I'd appreciate any clue on this:
I got installed OK (on fedora) ucblogo & ucblogo-emacs & trying to call for the emacs logo-mode IDE but I cannot get it working  [1]
The following command doesn't perform as expected:

Mx! install-logo-mode

Any clue would be appreciated..
------------------
http://www.mlb.co.jp/linux/science/ucblogo/README
1
1
Andreas Tjärnberg's profile photoSylver Stone's profile photo
6 comments
 
Hey!! thanks to +Noah Friedman [1] this script seems to patch the issue:
              (defun make-local-hook (hook)
                    (unless (local-variable-p hook)
                        (make-local-variable hook)
                        (set hook (list t)))
                    hook)

[1]https://plus.google.com/106162177005228789811/posts/fGrYMC9CurY
Add a comment...
 
Hi! I'm an Emacs user under Linux (Slackware). Can you suggest me a method do make LaTex files with autocompletition and install italian dictionary (Ispell). Thanks!!
1
bin chen's profile photoSylver Stone's profile photo
9 comments
 
Hi +bin chen ou yep, I got it. Thank you so much.
Add a comment...

ErgoEmacs

Discussion  - 
 
#emacs M-x display-time-world
12
1
Moe Bius's profile photoJeroen Tiebout's profile photo
 
That is sweet! I can forget about time.gov now.
Add a comment...

ErgoEmacs

Discussion  - 
 
Find File Location of a Feature Name

in emacs, if you know a feature name, you can locate the file by calling find-library

For example, call describe-variable then type “features”. Then pick any of the item. Then, call find-library, type that item. Emacs will jump to the file where the feature is defined.

I usually do describe-function, then jump to the file location. But, find-library is more direct, and useful. Because sometimes you only know the feature name, not the command to invoke it.

got the tip from https://twitter.com/_wilfredh
1
Add a comment...

Jay Dugger

Discussion  - 
1
Add a comment...

ErgoEmacs

Discussion  - 
 
Eshell. Eshell is a shell-like command interpreter implemented in Emacs Lisp. It invokes no external processes except for those requested by the user. It is intended to be an alternative to the IELM (see Emacs Lisp Interaction in The Emacs Editor ) REPL for Emacs and with an interface similar to ...
5
Nick Alcock's profile photo
 
It certainly existed in 2007 -- but it was pretty barebones then. It's actually useful now.
Add a comment...

Lionel Hummel

Discussion  - 
 
If you "live" in Emacs anyway, what more does a person need?

https://github.com/ch11ng/exwm/wiki
 
http://www.phoronix.com/scan.php?page=news_item&px=EXWM-Window-Manager Emacs is known to be a fully-customizable text-editor that can yield crazy abilities from playing games to emulating vi/vim to being an "OS inside an OS" with Emacs Lisp. The latest feature for Emacs is serving as an X Window Manager.
Phoronix is the leading technology website for Linux hardware reviews, open-source news, Linux benchmarks, open-source benchmarks, and computer hardware tests.
2
Adolfo De Unánue's profile photo
 
how this compares (in your opinion) with stumpwm?
Add a comment...

Rene Froger

Discussion  - 
 
As every tinkerer will know, my Emacs configuration was steadily growing. A looming burden of disorganization. To get a some sense of having a structure, I divided the existing configuration in seperated files, each for every category. It didn't helped a lot, it's getting more and more difficult to organize it, next to the compiling files. After getting an another bug again, I decided to start again with a fresh solid init.el/dot-emacs configuration. 

I decided to look first how others are organizing their configuration, to get some inspiration. I noticed there are many different ways to do that. 

Suppose they have the confiugration `foo-configuration.el`, they put `(provide 'foo-configuration)` at the bottom of the file.
In their `dot-emacs/init.el` they call the configuration with 

`(require 'foo-configuration)`.

But I prefer it in the other way. I create `bar-configuration.el`.

In my `dot-emacs/init.el`, I call the configuration with `(load "C:/Dropbox/Emacs/bar-configuration.el")` which suits my needs. 

To get more inspiration, I found this configuration: https://github.com/larstvei/dot-emacs/blob/master/init.org which is basically one single Org-file with all of your Emacs configuration. With Babel, I thought this would make it too complicated to handle with it, and too heavy load to open the Org file and filtering the contents (my Dot Emacs counts more than 10k lines) fast. 

So I'm looking further for another good examples of a  properly organized configuration on the internet. 

Any link to what's considered a rocksolid properly configuration would be appreciated. 
2
1
fi nurr's profile photoIain Wood's profile photoMatthias Brandt's profile photo
6 comments
 
check out emacs-live. https://github.com/overtone/emacs-live
It does some interesting stuff with "packs" to add functionality. You can selectively include the supplied ones, or write your own.
It was originally for use with overtone and clojure, but the flexibility and general usefulness  mean it has spread way beyond the overtone community. Only drawback is some bizarre keybindings, but they are easy to correct.
Add a comment...

Rene Froger

Discussion  - 
 
I love to use my homerow on the keyboard, in that way that my fingers never have the need to move. 

One thing that I used a lot in Vim, was `set timeout timeoutlen=400` which enables you to timing your keys. I didn't like key-chord because pressing the keys simultaneously was too much pressing. Recently I finally found an alternative in the new package [key-seq](https://github.com/vlevit/key-seq.el). Propz for the author for this useful modification. 

Okay, I noticed I'm switching windows a lot more than finding characters in a sentence. So I figured out that I would better use the `f`-key to switch to a specific window, with finding character on the second place. 

So I set it up as the following 


    (key-chord-mode 1) ;; Enables key-chord 
    (setq key-chord-two-keys-delay 0.4) ;; Set the timing to 400 miliseconds.
    (key-seq-define evil-normal-state-map "fl" 'evil-window-right)
    (key-seq-define evil-normal-state-map "fh" 'evil-window-left)
    (key-seq-define evil-normal-state-map "fj" 'evil-window-down)
    (key-seq-define evil-normal-state-map "fk" 'evil-window-up)

You can just typing `fj` to switch to the window below. So much convienent. If you want to find the character `j` or `l` for example, press `f`and then wait 400 milliseconds (which is already short), then you press the character `j` or `l`. 

Just try it out, timing with your keys on the top of modal editing makes the keybinding experience more powerful.
3
1
Jay Dugger's profile photo
Add a comment...
 
Emacs, PostgreSQL and Python!!! Because I'm a "software-defined geek". If there's more to life, I don't want to know about it. ;-)
6
1
WS Warthog's profile photoRobert Jørgensgaard Engdahl's profile photoXavier Brinon's profile photo
3 comments
 
I'd add two scoops of django, and that should be about it.
Add a comment...

ErgoEmacs

Discussion  - 
 
Atom 1.0 has just been released.
Here's syntax coloring of #JavaScript compared. http://ergoemacs.org/misc/syntax_coloring_in_editors.html 
It's curious. Of the 2 JavaScript modes for emacs, none of them does coloring of much JavaScript builtin words or methods. In fact, none. They only color what's often technically called “keywords”, such as {for, while, var, null, function}, maybe 30 of them or such.
6
Add a comment...