Home > Notes > Emacs Tips (1)

Emacs Tips (1)

Mon, 27 Jun 2011 23:09:03 +0800
1. Insert a C-style comment.
[CODE style="lisp"]
(defun ccm()
 "insert a C-style comment at current position"
 (interactive)
 (insert "/**
* Copyright(C)2011 Vencs corporation. All rights reserved.
*/")
)
[/CODE]

with this skill, can insert current date time like following:
(insert (format-time-string "%Y/%m/%d"))

To run above function, use M-x function.

2. Cursor type
[CODE type="lisp"]
(set-default `cursor-type `bar)
[/CODE]

Tag:Emacs
Hots
评论
发表评论:


  [TIPS:首次发表评论的朋友,需要验证]
Tags
Recent Post
Recent Comments
Links
Copyright Notes
You can reship all of these articles without permission but MUST mark the original link in your post. Please contact with me() if u have advice or other arrangements.
Copyright©2007-2011 lewphee.com All rights reserved.