Skip to content

Instantly share code, notes, and snippets.

View cnsunyour's full-sized avatar

Sunn Yao cnsunyour

View GitHub Profile
@cnsunyour
cnsunyour / myweechat.md
Created January 19, 2023 05:47 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 3.8-dev

Enable mouse

/mouse enable

Secured data

@cnsunyour
cnsunyour / ob-plantuml-config.el
Last active August 30, 2019 03:11
Add `:cmdline -charset utf-8' to org-src-block:plantuml; Fix `@start' prefix execute error
;; Add `:cmdline -charset utf-8' to org-src-block:plantuml
;; Fix `@start' prefix execute error
(use-package! ob-plantuml
:when (featurep! :lang plantuml)
:after plantuml-mode
:init
(defadvice! +fixstart--org-babel-execute:plantuml (args)
:filter-args #'org-babel-execute:plantuml
(cl-destructuring-bind (body params) args
(let* ((origin-body body)
@cnsunyour
cnsunyour / +google-translate-posframe.el
Last active August 24, 2019 16:59
Let google-translate use posframe to display tooltip, better than popup, no alignment problem
;; Google translate
;; 让google-translate使用posframe显示弹出窗口,比popup显示更好看,没有对齐问题
;; Let google-translate use posframe to display tooltip, better than popup,
;; no alignment problem
(require 'google-translate)
(setq google-translate-base-url
"http://translate.google.cn/translate_a/single")
(setq google-translate-listen-url
"http://translate.google.cn/translate_tts")