Skip to content

Instantly share code, notes, and snippets.

Avatar

lijigang lijigang

View GitHub Profile
@lijigang
lijigang / init-agenda-block.el
Created May 5, 2020
orgmode configuraion of agenda (colorful block)
View init-agenda-block.el
;; agenda 里面时间块彩色显示
;; From: https://emacs-china.org/t/org-agenda/8679/3
(defun ljg/org-agenda-time-grid-spacing ()
"Set different line spacing w.r.t. time duration."
(save-excursion
(let* ((background (alist-get 'background-mode (frame-parameters)))
(background-dark-p (string= background "dark"))
(colors (list "#1ABC9C" "#2ECC71" "#3498DB" "#9966ff"))
pos
duration)
@lijigang
lijigang / init.el
Created May 5, 2020
orgmode configuration of agenda (sunrise and sunset)
View init.el
;; learn from https://github.com/AbstProcDo/Master-Emacs-From-Scrach-with-Solid-Procedures/blob/master/05.Emacs-as-a-Agenda-by-Org.org
(setq org-agenda-include-diary t)
(setq org-agenda-diary-file "your/path/to/standard-diary")
(setq diary-file "your/path/to/standard-diary")
;; 设置本地经纬度坐标
(setq calendar-latitude 39.9042)
(setq calendar-longitude 116.4074)
@lijigang
lijigang / ljg.svimrc
Last active Aug 8, 2019
safari vim extension config
View ljg.svimrc
let mapleader = ","
map "u" lastClosedTab
map "d" quit
map "h" previousTab
map "l" nextTab
You can’t perform that action at this time.