Stream

Join this community to post or comment

ErgoEmacs

Discussion  - 
2
1
Xah Lee's profile photo
Add a comment...
 
Dear Emacs friends: 

Recently, for some reason unbeknownst to me, every evaluation of the keybinding C-c C-v on my TeX + AUCTex buffer freezes my aquamacs and what is more, after sometime, aquamacs revives itself. 

I have no idea how to gauge what the problem. 

So, any help/pointers towards collecting some preliminary data useful for diagnosis would be very welcome. 

Sincerely, 
An Emacs User whose productivity has taken a hit: 100 key strokes and 5 minutes of time spent watching the rainbow wheel go round and round.
1
Jonathan H's profile photo
 
Have you tried profiling?
Have you tried emacs -Q?
Have you tried top?
Add a comment...

ErgoEmacs

Tutorials  - 
Emacs Lisp: Parsing Date Time. Buy Xah Emacs Tutorial. Master emacs benefits for life. Xah Lee. , 2011-09-02 , …, 2015-04-14. This page shows you how to parse a date time string. If you are only interested in printing current date time in various formats, see: Emacs Lisp Date Time Formats.
5
Add a comment...

John Cook

Customization  - 
 
If you want to put OS-specific code in your initialization file but use the same file everywhere,  you might find this sample code useful.

On Windows, use dired+ and set the default font to Consolas.
On Linux, configure Emacs to play well with the X clipboard and use Inconsolata as the default font.

You can use system-type "darwin" to test for OS X.

(cond
    ((string-equal system-type "windows-nt") ; Microsoft Windows
        (progn
            (require 'dired+)         
            (set-default-font "Consolas")                
        )
    )
    ((string-equal system-type "gnu/linux") ; linux
        (progn
            (setq x-select-enable-clipboard t)
            (set-default-font "Inconsolata")
        )
    )
 )
7
1
Mark Hepburn's profile photoJohn Cook's profile photoJeroen Tiebout's profile photo
3 comments
 
+Mark Hepburn That makes sense, especially if you have a lot of OS-specific or machine-specific configuration. I don't, so I prefer keeping everything in one file.
Add a comment...

bin chen

Discussion  - 
1
Add a comment...
 
Hi, Emacers.   Do you use Super key in your keybinding? I found Prelude include it and the author also gives a few example of it. http://emacsredux.com/blog/2013/07/17/make-use-of-the-super-key/  I also enjoy the Super key very much. But in win8, some of Super key binding will be intercepted by system(eg. Super+D will go to desktop, Super + R will open up a command input box, Super + P will open projector settings etc..)  And in Ubuntu I even can't use Super key. The Win key will launch the GUI for selecting Applications. How do you remap Super key in Ubuntu and Linux. I know in Mac it works perfect. Thanks.
Emacs users have a lot of power at their disposal, but in one department they are always short - the number of available non-complex keybindings that …
1
Yuriy Pitometsu's profile photoGuanghui Qu's profile photo
12 comments
 
+Yuriy Pitometsu Thanks, I look at it.
Add a comment...

ErgoEmacs

Discussion  - 
 
i think emacs lacks a good command to isearch current word.
I created one recently “xah-search-current-word”. See updated http://ergoemacs.org/emacs/modernization_isearch.html
Let us know what do you do.
This page document a problem with emacs's incremental search feature, with suggested solution. Emacs's “isearch” has some problems. Suppose you have this line: … aa-bb - cc xx yy … and your cursor is on the second dash. You want to search the next occurrence of the word “aa-bb-cc”.
4
Jan Synáček's profile photoErgoEmacs's profile photo
6 comments
 
+Jan Synáček that checks boundaries. also, the keystroke is too much. 
Add a comment...

ErgoEmacs

Tutorials  - 
 
#emacs How to open a file with specific coding system? Open it then call revert-buffer-with-coding-system http://ergoemacs.org/emacs/emacs_encoding_decoding_faq.html
How to set a encoding system for saving file? Call set-buffer-file-coding-system , then type the encoding system you want. Press Tab ↹ to see a list of possible values. After you set a encoding system, you can save the file and it'll be saved in the new encoding system.
7
Add a comment...

Quan Ta

Customization  - 
 
WYDUX input method for emacs
file: wydux.el

(require 'quail)

(quail-define-package
 "wydux" "English" "WY@" t
 "English (ASCII) input method for WYDUX keyboard"
 nil t t t t nil nil nil nil nil t)

;;
;; `~ '1!  2@  3#  4$  5%  6^  7&  8*  9(  0)  -_  =+
;;  wW  yY  dD  uU  xX  ;:  hH  tT  cC  /?  [{  ]}  \|
;;   aA  oO  eE  iI kK  vV  rR  sS  nN  lL  '"
;;    ,<  qQ  fF  gG  jJ  bB  mM  pP  zZ  .>
;;

(quail-define-rules

 ("q" ?w) ("w" ?y) ("e" ?d) ("r" ?u) ("t" ?x)  ("y" ?\;) ("u" ?h) ("i" ?t) ("o" ?c) ("p" ?\/)
 ("Q" ?W) ("W" ?Y) ("E" ?D) ("R" ?U) ("T" ?X)  ("Y" ?\:) ("U" ?H) ("I" ?T) ("O" ?C) ("P" ?\?)

 ("a" ?a)  ("s" ?o) ("d" ?e) ("f" ?i) ("g" ?k) ("h" ?v)  ("j" ?r) ("k" ?s) ("l" ?n) (";" ?l)
 ("A" ?A)  ("S" ?O) ("D" ?E) ("F" ?I) ("G" ?K) ("H" ?V)  ("J" ?R) ("K" ?S) ("L" ?N) (":" ?L)

 ("z" ?,)  ("x" ?q) ("c" ?f) ("v" ?g) ("b" ?j) ("n" ?b)  ("m" ?m) ("," ?p) ("." ?z) ("/" ?.)
 ("Z" ?<)  ("X" ?Q) ("C" ?F) ("V" ?G) ("B" ?J) ("N" ?B)  ("M" ?M) ("<" ?P) (">" ?Z) ("?" ?>)
 )
 ·  Translate
1
Add a comment...

Quan Ta

Discussion  - 
6
Chris Holtz's profile photoQuan Ta's profile photo
3 comments
Quan Ta
 
Add a comment...

Chuan Liu

Questions  - 
 
I created an org file named 2015April.org in my Dropbox folder initially on my laptop and synced the file. And I'm able to find it through the windows explorer on my desktop after syncing(see the second picture). But I'm not unable to find it through ido in Emacs(see the first picture) on my desktop. Can anyone point out what is going on here and how to fix this for me? 
1
Chuan Liu's profile photoAndrew Kirkpatrick's profile photo
3 comments
 
Just a guess: Once you open a file in a directory using ido, the contents of the directory are cached, based on the mtime of the directory. It seems dropbox may not update the mtime of a directory under sync. Have a read of C-h v ido-max-dir-file-cache
Add a comment...

About this community

A community for Emacs lovers. Now you don't have to restrict those emacs posts because your friends and family have no clue what you are talking about!

Sylvain Benner

Announcements  - 
 
Ding ! 9000 members !
10
Ciarán Mulloy's profile photofi nurr's profile photo
6 comments
fi nurr
 
So what? Even the punctuation is messed up.
Add a comment...
 
Hi,
I use the latest emacs-snapshot build from https://launchpad.net/~ubuntu-elisp
and I found a bug.
Now I'm trying to figure out how to report it to the correct people.
Can someone give me a pointer?

EDIT:
Seems to have been a hiccup in some loaded library... please move along =)
1
Chris Holtz's profile photoAndreas Tjärnberg's profile photo
3 comments
 
Thanks!
Add a comment...
 
SX.el, the awesome Emacs client for the StackExchange network, has been stable and happy for many months now, and it’s about time I mentioned it here. We have put considerable effort into making the interface intuitive, teaching you how to use it without the need for explanations. In fact, it would probably be a disservice to the package for me to post a tutorial, so I won’t just yet. Instead, I’ll just urge you to give it a try.
11
4
Sylvain Benner's profile photoGaurav Verma's profile photoOm Prakash's profile photoJorge Araya Navarro's profile photo
 
Thanks..
Add a comment...

ErgoEmacs

Tutorials  - 
 
#emacs #lisp Cycle Replace Space Hyphen Underscore.
 (complete rewrite, no dependencies) http://ergoemacs.org/emacs/elisp_change_space-hyphen_underscore.html
Here's a emacs lisp command that toggles hyphen to underscore, or among hypen, underscore, space, for the word under cursor, or text selection. (defun xah-cycle-hyphen-underscore-space (φp1 φp2) "Cycle {underscore, space, hypen} chars of current word or text selection.
1
Add a comment...

Max Polk

Customization  - 
 
For remote emacs sessions in a terminal, one of the best things you can do is ensure your TERM env var is set to xterm-256color instead of xterm, before running emacs.  Assuming your terminal can handle it, you can then do M-x list-colors-display and see if you get huge number of 256 colors instead of just 16.
4
Add a comment...

bin chen

Discussion  - 
After shutdown of Google Code Search, I turned to plain google search instead. For example, if I want to search Emacs Lisp code. I google "keyword filetype:el". "el" is the file extension of Ema
11
1
Gaurav Verma's profile photo
Add a comment...
 
*Vim is almost 4 times more used than #Emacs   *
Then using emacs makes me...more special?
Where do developers live? How much do developers earn? Vim or Emacs? Tabs or spaces? This is the most comprehensive software developer survey on earth.
4
Joe Valenzuela's profile photoJonathan H's profile photo
12 comments
 
+Joe Valenzuela that may be, but not for all

Emacs is my Editor, maybe my IDE. Nothing more. I don't run it forever, I don't use it to read my email or surf or live. Emacs does not own my life.

I am very, very happy this way, and I suspect many more are too.

With a little love, Emacs is a great editor, and we use it as such.
Add a comment...
This page shows a emacs lisp command to change letter case by title convention. For example, “A Tale of Two Cities”, not “A Tale Of Two Cities”. (defun xah-title-case-region-or-line (φp1 φp2) "Title case text between nearest brackets, or current line, or text selection.
2
Add a comment...

Sebastian Wiesner

Announcements  - 
 
Flycheck 0.23 out, with a brand-new manual and website, new syntax checkers for Lua, R and SCSS, and many bug fixes and improvements.
Flycheck 0.23 06 April 2015. Flycheck 0.23 is released, with a new manual and a new website, some new syntax checkers, and some new features and improvements. Table of contents. Breaking changes; New manual and website; Language support. C/C++; Chef; Emacs Lisp; Handlebars; Lua; R; Rust; SCSS ...
7
2
Alexander Petrov's profile photoDennis Biringer's profile photo
Add a comment...