This file contains hidden or 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
(defvar my/skeleton-python-property-list-a) | |
(defvar my/skeleton-python-property-list-b) | |
(defvar my/skeleton-python-property-list-c) | |
(define-skeleton my/skeleton-python-class | |
"Skeleton for a class in Python." | |
"Class name: " | |
> "class " str | |
"(" |
This file contains hidden or 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
# -*- mode: snippet -*- | |
# name: class | |
# key: class | |
# -- | |
class ${1:"Name for the class: "}: | |
def __init__(${2:"Name for property 1"}, ${3:"Name for property 2"}, ${4:"Name for property 3"}): | |
self._$2 = $2 | |
self._$3 = $3 | |
self._$4 = $4 |
This file contains hidden or 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 my/org-refile-to-id (id &optional todo) | |
"Refile current subtree to subtree with ID." | |
(interactive (list (read-string "ID: "))) | |
(when todo (org-todo todo)) | |
(org-cut-subtree) | |
(let ((anchor (ignore-errors (org-id-get-create)))) |