Skip to content

Latest commit

 

History

History
875 lines (842 loc) · 29.1 KB

config_archive_2019.org

File metadata and controls

875 lines (842 loc) · 29.1 KB

Archived entries from file /home/yantar92/Git/emacs-config/config.org

2019

2019-08 August

2019-08-15 Thursday

Archived inline tasks

CANCELLED [#A] Maybe use built-in prettify-symbols-mode or pretty-mode or ligatures
  • State “CANCELLED” from “NEXT” [2019-08-15 Thu 17:09]

2019-11 November

2019-11-19 Tuesday

Archived Tasks

Debugging current issues
  • State “DONE” from “NEXT” [2019-11-19 Tue 23:12]
  • State “NEXT” from “TODO” [2019-04-03 Wed 10:42]
  • State “TODO” from [2019-04-03 Wed 10:42]

Trying to debug “Re-entering top level after C stack overflow”, as suggested in reddit

(setq max-lisp-eval-depth 6000
      max-specpdl-size 6000)

Archived inline tasks

Make it faster
  • State “DONE” from “TODO” [2019-11-19 Tue 11:16]

2019-11-25 Monday

Archived inline tasks

Make it work
  • State “DONE” from “TODO” [2019-11-25 Mon 11:50]

2019-12 December

2019-12-09 Monday

Archived Tasks

Archived inline tasks

CANCELLED do not use it. Instead store meta- keys names in constants and bind them later. There will be no overhead in the code anyway. [2019-11-28 Thu 10:59] Hmm.... What about depending on buffer contents
  • State “CANCELLED” from “TODO” [2019-12-09 Mon 13:13]

2019-12-15 Sunday

Archived Tasks

centered cursor mode

It’s still experimental, but I am trying to use centered cursor mode everywhere.

(use-package centered-cursor-mode
  :if init-flag
  :straight t
  :config
  (global-centered-cursor-mode +1))
Text file hygiene

Avoid trailing white-spaces at the end of the lines

(add-hook 'before-save-hook #'delete-trailing-whitespace)

2019-12-17 Tuesday

Archived inline tasks

make recursive conditions like :mode org-mode :cond org-at-heading-p body
  • State “DONE” from “TODO” [2019-12-17 Tue 06:33]

2019-12-18 Wednesday

Archived inline tasks

CANCELLED Just use threads instead
  • State “CANCELLED” from “TODO” [2019-12-18 Wed 16:27]
    Threads will always slow down emacs. It often make sense to just run separate process

2019-12-19 Thursday

Archived inline tasks

make a babel :wrap snippet aka (when init-flag BODY)
  • State “DONE” from “NEXT” [2019-12-19 Thu 12:52]
  • State “DONE” from “DOING” [2019-12-18 Wed 18:16]
  • State “DONE” from “NEXT” [2019-12-18 Wed 18:16]

2019-12-21 Saturday

Archived Tasks

CANCELLED Formatting messages
  • State “CANCELLED” from [2019-12-21 Sat 16:36]
    Do not need it because the problem with scrolling was in scroll-down-line scrolling beyond the end of buffer

Remove trailing newlines in messages

(use-package notmuch
  :if init-flag
  :config
  (add-hook 'notmuch-show-insert-text/plain-hook (lambda (&rest args) (interactive) (delete-trailing-whitespace))))
honor inherit export directory
  • State “DONE” from “TODO” [2019-12-21 Sat 20:30]

2019-12-22 Sunday

Archived Tasks

2019-12-25 Wednesday

Archived Tasks

Show file changes in the fringe
This slows down emacs on saving large org buffers. Disabling
(use-package git-gutter-fringe+
  :if init-flag
  :straight t
  :diminish git-gutter+-mode
  :init
  (use-package fringe-helper)
  :config
  (global-git-gutter+-mode))

2019-12-27 Friday

Archived inline tasks

[#A] make sure it works
  • State “DONE” from “NEXT” [2019-12-27 Fri 23:03]

Archived Tasks

FAILED [#A] this example seems to be wrong |- (alphapapa/org-ql: An Org-mode query language, including search commands and saved views)
  • State “FAILED” from “NEXT” [2019-12-27 Fri 16:52]
    It’s fine
  • Refiled on [2019-12-23 Mon 18:08]
  • Refiled on [2019-12-23 Mon 10:57]
((org-ql-block-header “SOMEDAY :Emacs: High-priority”)))
[#A] ignoring “B” default priority in org-ql is not in github page
  • State “DONE” from “NEXT” [2019-12-27 Fri 16:57]
  • Refiled on [2019-12-23 Mon 18:08]
  • Refiled on [2019-12-23 Mon 10:57]
[#A] org-ql-block does not apply link face when link is in heading
  • State “DONE” from “NEXT” [2019-12-27 Fri 16:59]
  • Refiled on [2019-12-23 Mon 18:08]
  • Refiled on [2019-12-23 Mon 10:57]
MERGED [#A] helm-org-ql search does not seem to understand outline path by default. It would make sense....
  • State “MERGED” from “NEXT” [2019-12-27 Fri 16:59]
  • Refiled on [2019-12-23 Mon 18:08]
  • Refiled on [2019-12-23 Mon 10:57]
CANCELLED [#A] how to emulate org-tags-match-list-sublevels from agenda in org-ql?
  • State “CANCELLED” from “NEXT” [2019-12-27 Fri 17:27]
  • Refiled on [2019-12-23 Mon 18:08]
  • Refiled on [2019-12-23 Mon 18:05]
MERGED [#A] What about looking at ancestors?
  • State “MERGED” from “NEXT” [2019-12-27 Fri 17:12]
[#A] the following happens when I try to change the todo state of a task in org-ql
  • State “DONE” from “NEXT” [2019-12-27 Fri 17:06]
  • Refiled on [2019-12-26 Thu 13:51]

DOING [#A] try this email |- Adam Porter <[email protected]>: Re: Asynchronous org-agenda-redo 2d ago :COMMON:EMAIL: get_started_org_mode: -0.9x DONE [#A] try to play with options by removing DOUG_LEA_MALLOC conds email |- Eli Zaretskii <[email protected]>: Re: bug#38345: 27.0.50; Permanent increase in memory consumption after opening images (or pdfs) :COMMON::EMAIL: get_started_org_mode: -0.9x DOING [#A] benchmark agenda after 1 day running :COMMON::

[#A] subtree agenda restriction seems to be ignored
  • State “DONE” from “NEXT” [2019-12-27 Fri 17:10]

2019-12-30 Monday

Archived Tasks

MERGED [#A] make org-ql format agenda items better
  • State “MERGED” from “NEXT” [2019-12-30 Mon 11:52]
  • Refiled on [2019-12-23 Mon 18:08]
  • Refiled on [2019-12-23 Mon 10:57]

2020

2020-03 March

2020-03-11 Wednesday

Archived inline tasks

adjust the width for various symbols
  • State “DONE” from “TODO” [2020-03-11 Wed 23:44]
this thing should be smarter and consider that multibyte characters can have different width. I will try to keep 2-byte double width. Then the string should be trimmed to certain number of bytes, but not certain character number
  • State “DONE” from “TODO” [2020-03-11 Wed 23:17]

2020-03-30 Monday

Archived Tasks

FAILED Make it work everywhere
  • State “FAILED” from “TODO” [2020-03-30 Mon 22:51]
  • This does not work with things like =C-c ‘symbol= for now.
  • This does not work with boon =command mode= and =special mode=.
  • this does not work with key chords (again read-event)
  • this does not work with region specifiers on boon (it uses read-event!)

Archived inline tasks

ask in org mail-list about save-window-config in emacs src execution
  • State “DONE” from “TODO” [2020-03-30 Mon 22:00]
ask mail-list about what “internal link means” in org-agenda-open-link. Condition look strange. Why just non-bracket link?
  • State “DONE” from “TODO” [2020-03-30 Mon 22:00]
my changes broke some C-c C-o behaviour. reverted for now, but need to investigate
  • State “DONE” from “TODO” [2020-03-30 Mon 22:00]

2020-04 April

2020-04-02 Thursday

Archived Tasks

Highlight uncommitted changes in version-controlled files and dirs

It slows down large org files though. Not going to use.

(use-package git-gutter-fringe
  :if init-flag
  :straight t
  :init
  (setq git-gutter-fr:side 'right-fringe)
  :config
  (add-hook 'magit-mode-hook #'git-gutter-mode))

2020-04-08 Wednesday

Archived inline tasks

CANCELLED do not show changes if the old todo was actually the same
  • State “CANCELLED” from “TODO” [2020-04-08 Wed 12:39]
I solved the issue with losing fontification of todo keywords when keyword actually does not change, but if it changes, still have problem
  • State “DONE” from “TODO” [2020-04-08 Wed 12:39]
CANCELLED maybe only show done?
  • State “CANCELLED” from “TODO” [2020-04-08 Wed 12:39]

2020-04-09 Thursday

Archived Tasks

Execute current buffer (c++,python,bash,…)
(use-package quickrun
  :if init-flag
  :straight t
  :bind (
	 ("<f10>" . quickrun)
	 ("<C-XF86Search>" . quickrun-with-arg)
	 ("<C-M-XF86Search>" . quickrun-shell)
	 ("<C-XF86Explorer>" . quickrun-region)
	 ("<C-M-XF86Explorer>" . quickrun-replace-region)
	 ("<f12>" . helm-quickrun)))
CANCELLED Bookmarks
  • State “CANCELLED” from “TODO” [2020-04-09 Thu 17:22]
(use-package bm
  :if init-flag
  :straight t
  :demand t

  :init
  ;; restore on load (even before you require bm)
  (setq bm-restore-repository-on-load t)


  :config

  (use-package helm-bm :straight t)

  ;; Allow cross-buffer 'next'
  (setq bm-cycle-all-buffers t)

  ;; highligh style
  (setq bm-highlight-style 'bm-highlight-line-and-fringe)
  (custom-set-faces '(bm-persistent-face ((t (:background "Lightyellow")))))
  (custom-set-faces '(bm-fringe-persistent-face ((t (:background "Lightyellow")))))

  ;; where to store persistant files
  (setq bm-repository-file "~/.emacs.d/bm-repository")

  ;; save bookmarks
  (setq-default bm-buffer-persistence t)

  ;; Loading the repository from file when on start up.
  (add-hook' after-init-hook 'bm-repository-load)

  ;; Saving bookmarks
  (add-hook 'kill-buffer-hook #'bm-buffer-save)

  ;; Saving the repository to file when on exit.
  ;; kill-buffer-hook is not called when Emacs is killed, so we
  ;; must save all bookmarks first.
  (add-hook 'kill-emacs-hook #'(lambda nil
                                 (bm-buffer-save-all)
                                 (bm-repository-save)))

  ;; The `after-save-hook' is not necessary to use to achieve persistence,
  ;; but it makes the bookmark data in repository more in sync with the file
  ;; state.
  (add-hook 'after-save-hook #'bm-buffer-save)

  ;; Restoring bookmarks
  (add-hook 'find-file-hooks   #'bm-buffer-restore)
  (add-hook 'after-revert-hook #'bm-buffer-restore)

  ;; The `after-revert-hook' is not necessary to use to achieve persistence,
  ;; but it makes the bookmark data in repository more in sync with the file
  ;; state. This hook might cause trouble when using packages
  ;; that automatically reverts the buffer (like vc after a check-in).
  ;; This can easily be avoided if the package provides a hook that is
  ;; called before the buffer is reverted (like `vc-before-checkin-hook').
  ;; Then new bookmarks can be saved before the buffer is reverted.
  ;; Make sure bookmarks is saved before check-in (and revert-buffer)
  (add-hook 'vc-before-checkin-hook #'bm-buffer-save)

  (use-package meta-functions
    :defer t
    :config
    (meta-defun meta-down-element :mode bm-show-mode bm-show-next)
    (meta-defun meta-up-element :mode bm-show-mode bm-show-prev))

  :bind (:map boon-command-map
	      ("N" . bm-toggle)
	      ("M-n" . bm-bookmark-annotate)
	      :map boon-insert-map
	      ("M-N" . bm-toggle)
	      ("C-M-N" . bm-toggle)
              :map boon-goto-map
              ("n" . bm-show)
              ("N" . helm-bm)
	      :map boon-forward-search-map
	      ("n" . bm-next)
              :map boon-backward-search-map
              ("n" . bm-previous)
              :map bm-show-mode-map
              ("<tab>" . bm-show-goto-bookmark)
              )
  )
Wind move
(use-package boon
  :if init-flag
  :config
  (bind-keys :map boon-forward-search-map
	     ("j" . windmove-down)
             ("k" . windmove-up)
             ("i". windmove-left)
             ("o" . windmove-right)
             ("l" . other-window)
             :map boon-backward-search-map
	     ("j" . windmove-down)
             ("k" . windmove-up)
             ("i". windmove-left)
             ("o" . windmove-right)
	     ("l" . other-window)))

2020-04-14 Tuesday

Archived Tasks

Show recursive directory size
(use-package dired-du
  :if init-flag
  :straight t
  :diminish dired-du-mode
  :custom
  ;; human readable size
  (dired-du-size-format t))

2020-04-20 Monday

Archived inline tasks

CANCELLED Use boon selection here to call org-cut-subtree conditionally
  • State “CANCELLED” from “TODO” [2020-04-20 Mon 21:01]

Archived Tasks

Comment/uncomment
(use-package comment-dwim-2
  :if init-flag
  :straight t
  :bind (:map prog-mode-map
	      ("M-;" . comment-dwim-2)))

2020-04-23 Thursday

Archived Tasks

(((((( auto close parentheses )))))))
(use-package elec-pair
  :if init-flag
  :hook (emacs-lisp-mode . electric-pair-local-mode))
Show current value in separate buffer
;; From https://www.reddit.com/r/emacs/comments/7htdzk/show_reddit_prettyprint_debugger_frames/

(use-package debug
  :if init-flag
  :config
  (defun gk-debugger-pp-frame ()
    (interactive)
    (let ((inhibit-read-only t)
          (frame (backtrace-frame (debugger-frame-number))))
      (set-buffer (pop-to-buffer "*BT: Frame*"))
      (destructuring-bind (special fn &rest args) frame
	(erase-buffer)
	(progn
          (insert "(" (pp-to-string fn))
          (dolist (arg args)
            (insert "\n" (pp-to-string arg)))
          (insert ")"))
	(goto-char (point-min))
	(indent-pp-sexp))))
  (define-key debugger-mode-map "r" 'gk-debugger-pp-frame))