As a programmer who sits before a computer more than 8 hours a day, standing up and exercising a bit regularly is said to be a good way to extend my lifespan. In this era, I believe even living a little longer could make a tremendous difference (see 《永生的阶梯》 by Cixin Liu, or Technological singularity on Wikipedia).
Monthly Archives: April 2014
GNOME: Move Current Window to Another Monitor
By installing put windows
, which is an GNOME plugin, you can press Super + Shift + Left/Right
to move the current window to the left-hand/right-hand side monitor , where Super
is the Windows
key on most keyboards.
Emacs: Display World Time
Recently, I started to use helm and found that M-x helm-world-time
could display local time in cities worldwide.
For example, to display Beijing and Melbourne time, you just need to change the variable display-time-world-list
:
(setq display-time-world-list '(("Asia/Shanghai" "China") ("Australia/Melbourne" "Melbourne")))
Emacs: 定时提醒
作为一个天天坐在电脑前的程序猿, 经常起来活动一下并四十五度角仰望天空, 据说能有效延长寿命. 而当今延长寿命, 可能比以往任何时代都更有意义 (见刘慈欣《永生的阶梯》).
GNOME: 把当前窗口移动到另一个屏幕
通过安装 put windows
这个 GNOME 插件, 你可以按 Super + Shift + 左右箭头
, 把当前窗口移动到左边/右边的屏幕. 其中 Super
就是大部分键盘上的 Windows
键.
Emacs 中显示世界各地时间
最近开始使用 helm, 实验其各种功能, 偶然发现 M-x helm-world-time
可以显示世界各时区的时间.
比如, 想要显示北京时间和墨尔本时间, 只要把 display-time-world-list
这个变量修改一下即可:
(setq display-time-world-list '(("Asia/Shanghai" "天朝") ("Australia/Melbourne" "猫本")))