yydai / yydai.github.io

Blog:
http://0x100.club
5 stars 0 forks source link

Emacs的一些技巧 #18

Open yydai opened 7 years ago

yydai commented 5 years ago

percol 效率工具,mark下: https://samrayleung.github.io/blog/2017/04/22/%E8%84%9A%E6%9C%AC%E5%88%86%E4%BA%AB/

yydai commented 5 years ago

hack kde and arch system

yydai commented 5 years ago

https://github.com/clvv/fasd auto jump tool

yydai commented 5 years ago

blog:

  1. https://samrayleung.github.io/blog/
  2. http://www.zmonster.me/
yydai commented 5 years ago

http://endlessparentheses.com/embedding-youtube-videos-with-org-mode-links.html

yydai commented 5 years ago

Some reference cards, very useful: https://www.gnu.org/software/emacs/refcards/index.html

dired mode: http://ergoemacs.org/emacs/file_management.html http://ergoemacs.org/emacs/effective_emacs.html

yydai commented 5 years ago

reading:

  1. https://www.moolenaar.net/habits.html
yydai commented 5 years ago

用处不大的默认绑定快捷键: https://www.reddit.com/r/emacs/comments/bldgsp/what_are_the_most_useless_default_emacs/

yydai commented 5 years ago

Read this blog later:

An Agenda for Life With Org Mode: https://blog.aaronbieber.com/2016/09/24/an-agenda-for-life-with-org-mode.html

yydai commented 5 years ago

有时间重新实践下GTD: https://www.lijigang.com/blog/2018/08/08/%E7%A5%9E%E5%99%A8-org-mode/

yydai commented 5 years ago

https://emacsredux.com/blog/2019/05/21/dealing-with-jekyll-post-urls/

yydai commented 5 years ago

org mode 实时预览(可能就是有点卡顿的感觉): 需要pdf-tools, 安装过程略过 In the directory of the org-file, I add a .latexmkrc file with the following contents:

# .latexmkrc
$pdf_previewer="emacsclient -e '(find-file-other-window %S)'";
$pdflatex='pdflatex %O -interaction=nonstopmode %S';
$pdf_update_method = 4;
$pdf_update_command = "emacsclient -e '(with-current-buffer (find-buffer-visiting %S) (pdf-view-revert-buffer nil t))'";

It ensures that the pdf buffer is updated after the document is compiled when using latexmk.

At the bottom of the org-file I add the following lines:

* COMMENT Local Variables
  # Local Variables:
  # eval: (server-start)
  # eval: (add-hook 'after-save-hook 'org-latex-export-to-latex nil t)
  # eval: (compile "latexmk -pdf -pvc -pdflatex='pdflatex -shell-escape -interaction nonstopmode'")
  # End:

https://www.reddit.com/r/emacs/comments/57nps0/orgmode_need_a_realtime_document_preview/d8ufu76?utm_source=share&utm_medium=web2x

yydai commented 4 years ago

unbind major mode key:

(require 'bind-key)

(unbind-key "C-," org-mode-map)

(unbind-key "C-'" org-mode-map)