Showing posts with label emacs. Show all posts
Showing posts with label emacs. Show all posts

Mar 31, 2017

default priority in org-mode

problem

org default priority is usually [B] and it's hard to control. i want to set it into lowest.

what is expected

For me, this is nice

  • [A]
  • [B]
  • [C]
  • default

solution

You can change the range of allowed priorities by setting the options org-highest-priority, org-lowest-priority, and org-default-priority. For an individual buffer, you may set these values (highest, lowest, default) like this (please make sure that the highest priority is earlier in the alphabet than the lowest priority):
(setq org-highest-priority 65)
(setq org-lowerst-priority 68)
(setq org-default-priority 68)

effect

now i'm happy :) it reduce 50% of my time to organize TODO-list

Dec 26, 2014

Speaking in Emacs

ベンチャー調べるつもりだったけど、ドイツ語辛かったのでとりあえずドイツ語楽にしたった。 いつか俺、germany-modeつくるんだ...orz

Mark Germany -> Ctrl + Shift + o -> "Freut Mich!"

;; germany
;; http://stackoverflow.com/questions/10594208/how-do-i-get-region-selection-programmably-in-emacs-lisp
(defun say-region (beg end)
  "message region or \"empty string\" if none highlighted"
  (interactive (if (use-region-p)
                   (list (region-beginning) (region-end))
                 (list (point-min) (point-min))))
  (let ((selection (buffer-substring-no-properties beg end)))
    (if (= (length selection) 0)
        (message "empty string")
      (shell-command (concat "say  --quality 127 -v Steffi" " \"" selection "\""))
      )
    )
  )
(define-key global-map (kbd "C-S-o") 'say-region)

使ってみるとこんな感じ

どうでもいいけどlebe -> liebe じゃないとカリーウルストと生きる!みたいなカオスになっちゃう。語集増やさねば....