Skip to content

Instantly share code, notes, and snippets.

View jsntn's full-sized avatar

Jason TIAN jsntn

View GitHub Profile

告诉你外语学习的真实方法及误区分析

UPDATE:

TODO:

@jsntn
jsntn / Build Emacs for Windows 64bit with Native Compilation.md
Created November 18, 2022 12:58 — forked from nauhygon/Build Emacs for Windows 64bit with Native Compilation.md
Step-by-step instructions to build Emacs for Windows 64 bit with MSYS2 and MinGW-w64. Now `native-comp` supported.

Build Emacs-w64 with MSYS2/MinGW-w64 with Native Compilation

Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!

  1. Download the latest MSYS2 from this download page.

  2. Install MSYS2 to, for example, C:\msys2 (make sure no space in path to avoid unwanted problems).

  3. Optionally prettify the MSYS2 console mintty with ~/.minttyrc to make it more pleasing to eyes. Thanks to this awesome theme!

@jsntn
jsntn / clocktable-by-tag.el
Created April 3, 2023 09:31 — forked from nonducor/clocktable-by-tag.el
Emacs org-mode dynamic block similar to clocktable, but grouped by tag. See: https://stackoverflow.com/questions/70568361/org-mode-review-clocked-time-by-multiple-tags
(require 'org-clock)
(defun clocktable-by-tag/shift-cell (n)
(let ((str ""))
(dotimes (i n)
(setq str (concat str "| ")))
str))
(defun clocktable-by-tag/insert-tag (files params)
(let ((tag (plist-get params :tags))
;; START: my :workday: todo task schedule update
(require 'org)
(require 'calendar)
(defun my-is-repeating-workday-task-p ()
"Check if the current TODO task is a repeating workday task.
A repeating workday task is defined as a task that has the tag :workday:
and a SCHEDULED property with a repeater interval of +1d/++1d/.+1d."
(save-excursion
(org-back-to-heading t)