emacs! start org-mode! --org-mode使用备注
为了更好的
live in emacs,一款合适的日程管理工具总是需要的。在挣扎了若干次后,最终还是把org-mode这一优秀的日程管理工具捡起来了。本文简单记录下使用的方法。
org-mode介绍
在神的编辑器emacs的传说中,往往有org-mode的身影。虽然按照(org官网)orgmode官网的描述,org-mode并不仅限于在emacs中使用,如开始使用 Org 模式吧,在没有 Emacs 的情况下这篇文章就详细讲解了在vscode中使用org-mode的方式,但是配合emacs的万物皆系于kbd之上的使用习惯,org-mode确实能够发挥最大的功能。
org-mode的基本功能包括设置待办事项、设置待办的标签、查看日历、查看某一天的待办及进度。基本上,满足了对优秀日程管理工具的所有想象。
elscreen标签背景颜色
使用
emacs过程中,配合evil使用,按照tab的划分,将编辑、浏览、leetcode等任务划分到不同的tab便于切换及管理。美中不足的是,模拟标签的elscreen默认将其他标签的颜色设置成:background blue :foreground black的配色,每次切换任务时,都需要重复确认需要跳转到哪个标签,就比较麻烦了。查找了一下重置face-attribute的方法,备注下。
在初始文件的最后添加:
;; 选中标签设置为绿底黑字,其他标签为黄底黑字
(set-face-attribute 'elscreen-tab-other-screen-face nil
:background "yellow" :foreground "black")
(set-face-attribute 'elscreen-tab-current-screen-face nil
:background "green" :foreground "black")
Mac使用备注
最近开始使用Mac了。在使用过程中,发现了一些
Mac OS和Centos体验上不同的地方。在这里做一下备注。
部分Linux指令缺失
Mac OS并没有实现所有的Linux下的指令,如realpath这里就需要单独安装一些扩展包了:
brew install coreutils
find匹配文件名
目录内容:
text text.bak
希望从中找到text.bak。使用find实现。
sed使用备注
sed功能介绍
先看下官方的介绍
Sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline).
While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and
is consequently more efficient. But it is sed’s ability to filter text in a pipeline which particularly distinguishes it from other types of
editors.
大概的意思,是面向流的文本编辑工具。一般用来对文件中的文本进行替换等操作。
以下备注一些常用的操作方式了。
c++插件管理--pluma<实践>
最近研究了一下pluma的使用。发现官网上的简单示例对于刚入门的人来说还是麻烦了些(而且还有语法错误)。
下面重新整理了一个例子,作为备注。