This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun endless/fill-or-unfill () | |
"Like `fill-paragraph', but unfill if used twice." | |
(interactive) | |
(let ((fill-column | |
(if (eq last-command #'endless/fill-or-unfill) | |
(progn (setq this-command nil) | |
(point-max)) | |
fill-column))) | |
(if (eq major-mode 'org-mode) | |
(call-interactively #' org-fill-paragraph) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun org-clock-merge (arg) | |
"Merge the org CLOCK line with the next CLOCK line. | |
Requires that the time ranges in two lines overlap, i.e. the | |
start time of the first line and the second time of the second | |
line are identical. | |
If the testing fails, move the cursor one line down. | |
Universal argument ARG overrides the test and merges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'dash) | |
(defun org-duplicate-heading () | |
"Move to duplicate heading in the current org buffer." | |
(interactive) | |
(let ((header-list '())) | |
(org-element-map (org-element-parse-buffer) 'headline | |
(lambda (x) | |
(let ((header (org-element-property :raw-value x)) | |
(begin (org-element-property :begin x))) | |
(when (-contains? header-list header) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package elfeed | |
:bind ("C-c f" . elfeed) | |
:init | |
(setq my/default-elfeed-search-filter "@1-month-ago +unread !sport ") | |
(setq-default elfeed-search-filter my/default-elfeed-search-filter) | |
:config | |
(elfeed-org) | |
;; | |
;; linking and capturing |
OlderNewer