Profile cover photo
Profile photo
Xi Xiao
4 followers
4 followers
About
Xi's posts

simple yasnippet code => [[`(clipboard-yank)`][$0]] does not expand correctly but elisp error, why?

I have several file level properties (like #+OPTIONS: toc:nil
) always defined at begin of all my org files. I wonder whether it is possible to make a template so that all org files I create will have these properties added automatically?

Post has attachment
In win7, I use this emacs build - http://emacsbinw64.sourceforge.net/ and Cygwin to create symlinks. However, emacs does not recognize symlinks, instead it opens up the link file content itself. How to solve this problem? There is a solution w32-symlinks.el in internet, but I am afraid it is updated already.

What is the most difficult part in Emacs? 
IMO: "how to be less addicted or quit"

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?

Question: Shall I switch to emacs+Evil since I am still a emacs beginner at moment?

I am a intrigued 3-month-experience Emacs user with very little Vim knowledge. I am currently fairly comfortable with emacs keys. I use prelude setup from github + limited amount of own customization. 
I heard that using Evil/spaceman mode can gain benefits of both Emacs and Vim, for example, saving a lot of keystrokes. I am considering of learning it along with basic Vim keys.

Post has attachment
How to open hyperlinks from google chrome browser when reading email in Gnus
I have set '(browse-url-generic-program "google-chrome") and it works as expect for URLs in email content. 
However, if it is a hyperlink (i.e. the URL is beneath a text) Gnus tries to use w3m instead of chrome when I hit enter key.

What I want: 
1. use w3m to render html content in email, which is working perfectly already.
2. open URLs or hyperlinks from google chrome when enter key is hit.

Any idea?

Dired does not recognize home directory "~"

Environment: GNU Emacs 24.5.1 Windows 7 64bit
I have ido enabled globally, and HOME system variable set. ido recognizes paths under ~ succesfully, but Dired mode gives "searching for program: no such file or directory, git" message and refuses to open.

Dired opens paths without ~ inside correctly like "C:\programs\application1\" 

Any hint?

Post has attachment
Issue: gnus open gmail fails in windows 7.

1. GNU emacs version: 24.5.1 (extracted from emacs-24.5-bin-i686-mingw32.zip)
gnutls related .exe and .dll files downloaded into emacs\bin folder (extracted from gnutls-3.3.11-w32-bin.zip)
2. Function: gnutls-available-p  returns t
3. run this code snippet gives me "(error "Certificate validation failed www.google.com, verification code 66")"
   (condition-case e
    (delete-process
     (gnutls-negotiate
      :process (open-network-stream "test" nil "www.google.com" 443)
      :hostname "www.google.com"
      :verify-error t))
  (error e))

4. open gnus gives this error in Messages buffer:
Warning: Opening nnimap server on gmail...failed: ; Server nnimap+gmail previously determined to be down; not retrying; Opening nnimap server on gmail...failed: ; Server nnimap+gmail previously determined to be down; not retrying; Opening nnimap server on gmail...failed: ; Server nnimap+gmail previously determined to be down; not retrying; Unable to open server nnimap+gmail due to: make client process failed: connection timed out, :name, nnimap, :buffer,  *nnimap imap.gmail.com 993  *nntpd**, :host, imap.gmail.com, :service, 993, :nowait, nil

5. gmails open successfully in Ubuntu 14.04 Gnu Emacs


Any idea why Windows fails here? or how to debug?

Post has attachment
Wait while more posts are being loaded