未加星标

Useful Emacs Commands

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二04 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

This page serves as on-line documentation for some Emacs commands that I always have a hard time remembering. It evolved from “notes to myself” posts on my blogIrreal.

Commands for Matching Lines COMMAND ALIAS ACTION keep-lines delete-non-matching-lines Delete lines not matching regexp flush-lines delete-matching-lines Delete lines matching regexp how-many count-matches Count lines matching regexp occur list-matching-lines Show lines matching regexp in another buffer highlight-lines-matching-regexp hi-lock-line-face-buffer Highlight lines matching regexp multi-occur Occur on multiple buffers multi-occur-in-matching-buffers Occur on buffers chosen by regexp

Deleting Lines and Parts of Lines KEY SEQUENCE ACTION 【 Ctrl + 0 Ctrl + k 】 Delete from point to beginning of line 【 Shift + Ctrl + Backspace 】 Delete entire line the point is on

Miscellaneous Text Commands KEY SEQUENCE COMMAND ACTION 【 Meta + o Meta + s 】 center-line Center line ( n lines with prefix n ) 【 Ctrl + Meta + w 】 append-next-kill Append next kill none linum-mode Turn on line numbers in left fringe

Register Commands

Specify a prefix on copy/move commands to delete the original.

KEY SEQUENCE FUNCTION 【 Ctrl + x r Space ρ 】 Copy position to register ρ 【 Ctrl + x r j ρ 】 Jump to the position in register ρ 【 Ctrl + x r s ρ 】 Copy/Move region to register ρ 【 Ctrl + x r i ρ 】 Insert object in register ρ at point 【 Ctrl + x r r ρ 】 Copy/Move rectangle to register ρ 【 Ctrl + x r w ρ 】 Copy current frame configuration to register ρ 【 Ctrl + x r f ρ 】 Copy all frame configurations to register ρ 【 Ctrl + u N Ctrl + x r n ρ 】 Insert N into register ρ 【 Ctrl + u I Ctrl + x r + ρ 】 Increment register ρ by I

Using set-mark-command to Remember Locations KEY SEQUENCE ACTION 【 Ctrl + Space Ctrl + Space 】 Push current position onto mark ring 【 Ctrl + u Ctrl + Space 】 Return to previous position in the same buffer 【 Ctrl + x Ctrl + Space 】 Return to previous position, which may or may not be in the same buffer

Useful Help Commands Command Action 【 e 】 View *Messages* buffer 【 F 】 CMD View Info node documenting CMD 【 r 】 View Emacs Manual

Also: elisp-index-search and emacs-index-search

Emacs Syntax Table

These aren't really commands but I always have a hard time finding this table in the built-in documentation so I'm listing it here.

SYNTAX CLASS CHARACTER DESIGNATION Whitespace Character - (hyphen) or Word Constituent w Symbol Constituent _ (underscore) Punctuation Character . Open Parenthesis ( Close Parenthesis ) String Quote " Escape-Syntax Character \ Character Quote / Paired Delimeter (TeX $) $ Expression Prefix ' Comment Starter < Comment Ender > Inherit Standard Syntax @ Generic Comment Delimiter ! Generic String Delimiter |

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

tags: Ctrl +,lines,matching,register,regexp,line,Commands,buffer,Copy,position,Space
分页:12
转载请注明
本文标题:Useful Emacs Commands
本站链接:https://www.codesec.net/view/586915.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(52)