Org Export Ox

ox-pandoc

latex 内嵌公式的支持

  • 不推荐使用 $formula$ 格式,这种格式对中文支持不友好,会导致转换 mathjax 公式失败
  • 推荐使用 \(formula\) 格式

inline 图片支持

在 org 文件中添加设置:

1
#+PANDOC_OPTIONS: self-contained:t

全部 resources 数据 inline 支持

  1. 修改 ox-pandoc

Lazygit

CheatSheet

切换多个页面

h/l

切换 Tab 页

[]

切换一个页面上的多个 Tab 页

一个 Tab 页上的多个 item

j/k

Http in Emacs and ELisp

使用 plz.el / plz-see 一步请求

1
2
3
4
5
6
7
8
(let* ((result (plz 'get "http://localhost:18399/is_alive"
                 :as #'json-read
                 :then (lambda (alist) (let* ((data (gethash "data" alist))
                                              (time (gethash "time" data)))
                                         (message "time: %s" time))
                         ))
               ))  result)
#<process plz-request-curl>

使用 request.el

1
2
3
4
❯ curl -X 'GET' \
  'http://172.16.10.67:18399/is_alive' \
  -H 'accept: application/json'
{"code":200,"msg":"ok","data":{"time":"2025-07-24T17:09:12.963398"}}%
1
2
3
4
5
6
7
ELISP> (let* ((resp-data (request-response-data (request "http://localhost:18399/is_alive"
                                                  :type "GET"
                                                  :parser 'json-read
                                                  :sync t)))
              (data (gethash "data" resp-data)) (time (gethash "time" data))) time)

"2025-07-24T16:55:46.890293"

Neovide

how to use neovide with ssh

方法:

  1. 本地: ssh -L + nvim embeded server

    ssh my-server -v -L 12341:localhost:12341 -- nvim --headless --listen localhost:12341
    
  2. 本地:启动neovide 连接 nvim server

    neovide.exe --server=localhost:12341
    

windows bat file start-neovide.bat:

1
2
3
4
5
6
7
8
9
for /f %%i in ('python -c "import random;print(random.randrange(30000,64000))"') do set random_number=%%i

echo %random_number%
start /b ssh %1 -v -L %random_number%:localhost:%random_number% -- nvim --headless --listen localhost:%random_number%

:: sleep 1s to wait nvim headless server starting
timeout /t 1 /nobreak >nul 

neovide.exe --server=localhost:%random_number%

linux startneovide.sh