Navigation

emacs

安装后新的emacs23后做的几个工作

in

安装后新的emacs23后做的几个工作

因为备份了以前的.emacs,所以很好办。我必须用的markdown-mode还是在原来的loadpath。也就能够直接使用。

color-theme就是emacs的颜色主题不能直接用,因为以前是用eamcs-snapshot配套的emacs-goodies包。现在下载这个扩展放到自己loadpath中吧。

方法: http://www.emacswiki.org/emacs/ColorTheme

其它就没了。主要是注释掉了很多.emacs中自己不用的东西。比如emacs-muse的设置,和一些其它扩展。

升级到ubuntu gnu/linux 8.10后,原来的eamcs-snapshot-gtk不能用了!而起暂时只能cvs下载源码安装。

in

升级到ubuntu gnu/linux 8.10后,原来的eamcs-snapshot-gtk不能用了!而起暂时只能cvs下载源码安装。

以后不再升级ubuntu普通版本了,只升级到Long term support的版本。

昨天升级的。今天一开机没发现什么变化。开emacs写点东西,告诉我没有了。查了一下,没有了!只剩下终端下的了。用“新立得”安装软件,在ubuntu库中,emacs-snapshot对应的就是eamcs23,或者说emacs-unicode,或者说emacs-from-cvs,反正都是一个意思,这是一个从根儿上就支持unicode的版本。用它最放心。无任何中文问题(不需做任何中文设置的意思)。可不让装,说有2个库的dependency无法解决。

只能自己cvs checkout出来装了。

也好。:)cvs出来的更加新啊。:)

安装方法在这里: http://www.emacswiki.org/cgi-bin/emacs-en/EmacsFromCVS

哇,下载出来速度好快呀。:)

  ./configure

报没有makeinfo,这makeinfo怎么装啊。没有叫makeinfo的软件啊。而且我有了info也有了make。查找后发现装texinfo就可以了。是tex。

texinfo和文档竟然是non-free!!!?管不了那么多了。装上emacs再说。

还是不行。

只能加—without-makeinfo了:(

   configure: error: You do not seem to have makeinfo >= 4.6, and your
   source tree does not seem to have pre-built manuals in the `info' directory.
Either install a suitable version of makeinfo, or re-run configure
with the `--without-makeinfo' option to build without the manuals.

只后还是有库没有,继续—without-一个库 —without-另一个库

然后

make bootstrap
make
make install

完毕

问问题:批量更改文件名,从PeterSchiff_01-09-2008 改为PeterSchiff_20080109的方法

我会用sed或perl正则,但不知道如何如何结合bash

sed -e ‘s/(*_)([^-])-([^-])-([200?]).mp3/\1\4\3\2.mp3/’

不知道这个正则表达式对么?意思是把文件名分成4捕风 peterschiff_ 日 月 年 ,然后重新排序。

这个正则是不对的,但错在哪里呢。

emacs也提供批量修改文件名的功能,并支持正则表达,我常用emacs。谁知道在emacs中如何修改就更好了。谢谢。:)

emacs中显示含有某一特定字符串的所有行用 alt-x list-matching-lines

in

emacs中显示含有某一特定字符串的所有行用 alt-x list-matching-lines

非常好用。等于快速浏览某一篇文章中你最想看到的内容。比如检查一些关键字出现的句子。

相关的命令还有

  • list-matching-lines (works on whole file)
  • delete-matching-lines (works on region if exist, else work from cursor point to end of file.)
  • delete-non-matching-lines

可以用这些命令只查看或删除文章中有某些关键字的行。还可以用它只查看或删除源代码中的注释。

emacs中表示回车用 ctrl-q ctrl-j

in

emacs中表示回车用 ctrl-q ctrl-j

我不明白为什么\n等不行。

emacs: version control

in

emacs: version control

seth Subscribed to comments via email
Jul 29, 2008 at 3:26 pm

Why are you using psvn.el for examining a directory when there’s vc-dired (C-x v d).

Just curious

emacs的wikipedia-mode:专门编辑wikipedia语法的文章

emacs的wikipedia-mode:专门编辑wikipedia语法的文章

介绍 http://en.wikipedia.org/wiki/Wikipedia:Wikipedia-mode.el
直接下载该插件 http://www.emacswiki.org/cgi-bin/wiki/download/wikipedia-mode.el

我无法在emacs23中使用这个插件!!!怎么回事?

用gnus上新闻组

in

用gnus上新闻组
http://learn.tsinghua.edu.cn:8080/20...
然后启动gnus
按 AA 连续两个大写A
google groups上也可以订阅
cn.bbs.* 的组

emacs po-mode

emacs po-mode
全面了解:
http://www.emacswiki.org/cgi-bin/wik...
http://www.gnu.org/software/gettext/...

安装

默认就应该有而且把po/pot文件拽到emacs中应该能自动转换到po模式

启动

如果没有自动启动,用 Alt-x po-mode

快捷键

The main PO commands are those which do not fit into the other categories of subsequent sections. These allow for quitting PO mode or for managing windows in special ways.

_
Undo last modification to the PO file (po-undo).
Q
Quit processing and save the PO file (po-quit).
q
Quit processing, possibly after confirmation (po-confirm-and-quit).
0
Temporary leave the PO file window (po-other-window).
?
h

Show help about PO mode (po-help).

Give some PO file statistics (po-statistics).

V
Batch validate the format of the whole PO file (po-validate).

http://www.gnu.org/software/gettext/...

.
Redisplay the current entry (po-current-entry).
n
Select the entry after the current one (po-next-entry).
p
Select the entry before the current one (po-previous-entry).
<
Select the first entry in the PO file (po-first-entry).
>
Select the last entry in the PO file (po-last-entry).
m
Record the location of the current entry for later use (po-push-location).
r
Return to a previously saved entry location (po-pop-location).
x
Exchange the current entry location with the previously saved one (po-exchange-location)

http://www.gnu.org/software/gettext/...

t
Find the next translated entry (po-next-translated-entry).
T
Find the previous translated entry (po-previous-translated-entry).
http://www.gnu.org/software/gettext/...

z
Find the next fuzzy entry (po-next-fuzzy-entry).
Z
Find the previous fuzzy entry (po-previous-fuzzy-entry).

Remove the fuzzy attribute of the current entry (po-unfuzzy).

http://www.gnu.org/software/gettext/...

u
Find the next untranslated entry (po-next-untranslated-entry).
U
Find the previous untranslated entry (po-previous-untransted-entry).
k
Turn the current entry into an untranslated one (po-kill-msgstr).

http://www.gnu.org/software/gettext/...


Interactively edit the translation (po-edit-msgstr).

C-j
Reinitialize the translation with the original, untranslated string (po-msgid-to-msgstr).
k
Save the translation on the kill ring, and delete it (po-kill-msgstr).
w
Save the translation on the kill ring, without deleting it (po-kill-ring-save-msgstr).
y
Replace the translation, taking the new from the kill ring (po-yank-msgstr).

** C-c C-c 提交条目翻译**

The command (po-edit-msgstr) opens a new Emacs window meant to edit in a new translation, or to modify an already existing translation. The new window contains a copy of the translation taken from the current PO file entry, all ready for edition, expunged of all quoting marks, fully modifiable and with the complete extent of Emacs modifying commands. When the translator is done with her modifications, she may use C-c C-c to close the subedit window with the automatically requoted results, or C-c C-k to abort her modifications. See Subedit, for more information.

http://www.gnu.org/software/gettext/...

Interactively edit the translator comments (po-edit-comment).

K
Save the translator comments on the kill ring, and delete it (po-kill-comment).
W
Save the translator comments on the kill ring, without deleting it (po-kill-ring-save-comment).
Y
Replace the translator comments, taking the new from the kill ring (po-yank-comment).

http://www.gnu.org/software/gettext/...

C-c C-c
Complete edition (po-subedit-exit).
C-c C-k
Abort edition (po-subedit-abort).
C-c C-a
Consult auxiliary PO files (po-subedit-cycle-auxiliary).

http://www.gnu.org/software/gettext/...

有了po-mode,翻译po文件简直太舒服和简单了。

当然,vim也有相应插件。

http://vim.sourceforge.net/scripts/s...

emacs可以直接打开gz文件

in

emacs可以直接打开gz文件

不需要解压缩了。
如果解压缩,那么 1)双击文件,选择解压 或者 2) gunzip 文件.gz
g就是gnu的意思
unzip自然是打开zip
gz是gnu zip的意思

一直想买一个操作电脑的脚踏板/foot pedal

一直想买一个操作电脑的脚踏板/foot pedal



source:http://www.altoedge.com/pedals/index.html

就是整个样子滴~~~~

主要是做transcrpit的人用。

当然,应该也可以在emacs中用啊。比如左脚ctrl右脚是alt之类?:)

emacs中搜索你想要找到的帮助

in

emacs中搜索你想要找到的帮助

我发现用 alt-x emacs-index-search 不错。输入命令后回车,给个关键词。我就是这么搜到emacs的faq的。

emacs中用c-h c-f调出emacs faq,也可以用alt-x view-emacs-FAQ,就是emacs经常被回答/问到的问题

in

emacs中用c-h c-f调出emacs faq,也可以用alt-x view-emacs-FAQ,就是emacs经常被回答/问到的问题

File: efaq, Node: Top, Next: FAQ notation, Prev: (dir), Up: (dir)

This is the GNU Emacs FAQ, last updated on 6 May 2008.

This FAQ is maintained as a part of GNU Emacs. If you find any
errors, or have any suggestions, please use `M-x report-emacs-bug’ to
report them

也是值得翻译的文档。

c-h c-f 很好记忆,h是help,f是faq。

eamcs-uptime,查看emacs启动了多长时间了

in

eamcs-uptime,查看emacs启动了多长时间了

gnu/linux有uptime这个命令大家有知道,emacs也有!:)

  Alt-x emacs-uptime

对于服务器来说,uptime是一个评判指标,当然越长相对越稳定。

对于emacs就不必追求这些了。节约用电才好。

我现在uptime是8个小时,就是上班打开电脑就开了emacs一直在运行。因为我基本所有工作,出了用浏览器和用terminal通过ssh管理几个站点,其它都在emacs中完成。我也没那么多工作就是了。哈哈。

emacs中把shell结果直接插入到文本内用 Ctrl-u Alt-! 命令

in

emacs中把shell结果直接插入到文本内用 Ctrl-u Alt-! 命令

比如插入日期:

  Ctrl-u Alt-! date

结果是在你文本光标位置插入:

  2008年 07月 07日 星期一 08:14:44 CST

更有用是你对某块文本运行sort命令,或者插入某一目录结构

 Ctrl-u Alt-! ls 

还有,如果你经常在终端运行命令并把结果服知道emacs中,那这个命令太有用了。

比如输入 黄金 隐私 等词语搜索










搜索本站
搜索WWW

Powered by Drupal, an open source content management system