// @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Public Domain // @license-end

[230312] 이맥스로 나무위키링크로 가는 기능 만들기 (link to namuwiki url by emacs)

emacs code below.

(defun look-up-via-namuwiki ()
  "Look up the word under the curosr on namuwiki"
  (let (word)
    (setq word
	  (if (use-region-p)
	      (buffer-substring-no-properties (region-beginning) (region-end))
    (setq word (url-hexify-string word))
    (browse-url (concat "https://namu.wiki/w/" word)))

(global-set-key (kbd "C-c C-m")

thank you for stopping by.

Date: 2023-03-12 Sun 00:00

Author: Younghwan Nam

Created: 2024-01-04 Thu 09:13

Emacs 27.2 (Org mode 9.4.4)