+
Skip to content

eludom/thats-cool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Emacs - things that make me say “Oh, that’s cool !!!”

There are reasons I’m still using Emacs after 40 years. After all that time, I still discover things on a daily basis that make me exclaim “Oh, that’s cool”. It’s useful. If’s fun. It is an end as well as a means.

Github renders .org files as well as markdown

Github has buil-in rendering for basic org mode text. Like this file.

Creating a temporary buffer in emacs

[2020-08-14 Fri 07:13] In Xah fly mode “SPC i l” calls xah-new-empty-buffer. coo.

Org-capture for notes/journals/tweets…

[2020-08-14 Fri 07:25] Capture Templates So, org-capture “note” template allows me to capture notes/journals/tweets. My config has:

(setq org-capture-templates
   (quote (...
           ("n" "note" entry (file "~/Org/refile.org")
            "* %? :NOTE:\n%U\n%a\n")

I commented out the old entry because I don’t use clocking for time tracking

In Org mode, take a note when task is DONE

[2020-08-16 Sun 08:17] In org mode, you can add notes to a TODO item when it transitions to the DONE (or other) states.

Just define org-todo-keywords as follows (here being after the “|” means it is a “done” (red) state, the “d” means to use “d” as the shortcut key and “@”) means to add a note with a timestamp. “!” means “add a timestamp”. ”” means allows separate actions for transitions into the state (left of ””) and out of the state “/”

(setq org-todo-keywords
'((sequence "TODO(t)" "IN-PROGRESS(i!)" "WAITING(w@/!)" "|" "DONE(d@)" "REFILED(r!)" "DELEGATED(g@)" "CANCELED(c@)" "OBE(o@)")))

Helm abbrev stack

[2020-08-19 Wed 07:14] I use helm for emacs command auotocompletion (M-x foo..). I kept typing “ms” to get my “magit-status” but instead kept getting “gnus-ms-mail”. It turns out helm maintains an LRU stack of commands used that match the substring typed (e.g. “ms”). You can use the arrow keys to pick one that is not on top of the stack. Then it will be on top of the stack next time and you can just type, e.g. “ms”. Cool !

RETURN opens URL under cursor in browser in org

[2020-08-22 Sat 08:26] Not sure if this is new behavior or not, but hitting RETURN on top of a URL in an .org file now opens the URL in the default browser. Of source, M-x eww still opens it in eww for the text-only view of the world.....

About

This is a micro-blog of things I find that make me say "that's cool".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载