Emacs: Move most important TODO entries from todo.org to the init files
parent
3ba9507911
commit
0222a304f1
|
@ -299,6 +299,7 @@
|
||||||
;;; Wgrep
|
;;; Wgrep
|
||||||
(nconc package-selected-packages '(wgrep-helm wgrep-pt))
|
(nconc package-selected-packages '(wgrep-helm wgrep-pt))
|
||||||
(when (require 'wgrep nil t)
|
(when (require 'wgrep nil t)
|
||||||
|
;; TODO: wgrep-face is not so pretty.
|
||||||
(set-face-attribute 'wgrep-face nil :inherit 'ediff-current-diff-C :foreground 'unspecified :background 'unspecified :box nil))
|
(set-face-attribute 'wgrep-face nil :inherit 'ediff-current-diff-C :foreground 'unspecified :background 'unspecified :box nil))
|
||||||
|
|
||||||
;;; Window manager
|
;;; Window manager
|
||||||
|
|
|
@ -427,6 +427,9 @@ This does not interfere with `subword-mode'."
|
||||||
(modify-syntax-entry ?_ "_")
|
(modify-syntax-entry ?_ "_")
|
||||||
(message "_ is a word delimiter")))
|
(message "_ is a word delimiter")))
|
||||||
|
|
||||||
|
;;; TODO: Move turn-on-* functions to 'hook-functions.el'.
|
||||||
|
;;; Replace useless individual comments with global comment.
|
||||||
|
|
||||||
(defun turn-on-column-number-mode ()
|
(defun turn-on-column-number-mode ()
|
||||||
"Unconditionally turn on `column-number-mode' for the current buffer."
|
"Unconditionally turn on `column-number-mode' for the current buffer."
|
||||||
(set (make-variable-buffer-local 'column-number-mode) t))
|
(set (make-variable-buffer-local 'column-number-mode) t))
|
||||||
|
|
|
@ -6,8 +6,19 @@
|
||||||
;;; modules, runs their hooks and concludes with `eshell-first-time-mode-hook'
|
;;; modules, runs their hooks and concludes with `eshell-first-time-mode-hook'
|
||||||
;;; (for the first session only) and `eshell-mode-hook'.
|
;;; (for the first session only) and `eshell-mode-hook'.
|
||||||
|
|
||||||
|
;;; TODO: Redirecting big output to file (e.g. /dev/null) is extremely slow.
|
||||||
|
|
||||||
;;; TODO: Cannot "C-c C-c" during a `sudo pacman -Syu`.
|
;;; TODO: Cannot "C-c C-c" during a `sudo pacman -Syu`.
|
||||||
|
|
||||||
|
;;; TODO: The buffer stutters when writing "in-place", e.g. pacman, git.
|
||||||
|
;;; It seems that it does not do it as much in `emacs -Q`.
|
||||||
|
|
||||||
|
;;; REVIEW: `eshell/sudo' should not read -u in command arguments.
|
||||||
|
;;; This fails: sudo pacman -Syu --noconfirm.
|
||||||
|
;;; http://www.gnu.org/software/emacs/manual/html_node/eshell/Built_002dins.html
|
||||||
|
;;; https://emacs.stackexchange.com/questions/5608/how-to-let-eshell-remember-sudo-password-for-two-minutes
|
||||||
|
;;; See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27411
|
||||||
|
|
||||||
;;; REVIEW: Eshell/Shell completion fails when PATH has a non-readable element.
|
;;; REVIEW: Eshell/Shell completion fails when PATH has a non-readable element.
|
||||||
;; See https://github.com/emacs-helm/helm/issues/1785
|
;; See https://github.com/emacs-helm/helm/issues/1785
|
||||||
;; and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27300.
|
;; and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27300.
|
||||||
|
@ -34,6 +45,10 @@
|
||||||
;; TODO: Hour is printed twice. We don't need to set this?
|
;; TODO: Hour is printed twice. We don't need to set this?
|
||||||
;; (setq eshell-ls-date-format (replace-regexp-in-string "^\\+*" "" (getenv "TIME_STYLE")))
|
;; (setq eshell-ls-date-format (replace-regexp-in-string "^\\+*" "" (getenv "TIME_STYLE")))
|
||||||
|
|
||||||
|
;;; TODO: ls: Sort using locale.
|
||||||
|
|
||||||
|
;;; TODO: `kill -#' does not work.
|
||||||
|
|
||||||
;;; Leave `eshell-highlight-prompt' to t as it sets the read-only property.
|
;;; Leave `eshell-highlight-prompt' to t as it sets the read-only property.
|
||||||
(setq eshell-prompt-function
|
(setq eshell-prompt-function
|
||||||
(lambda nil
|
(lambda nil
|
||||||
|
@ -96,6 +111,10 @@
|
||||||
(add-hook 'eshell-mode-hook 'eshell-cmpl-initialize)
|
(add-hook 'eshell-mode-hook 'eshell-cmpl-initialize)
|
||||||
|
|
||||||
;;; Filter out space-beginning commands from history.
|
;;; Filter out space-beginning commands from history.
|
||||||
|
;;; TODO: history/command hook: trim surrounding space. Check `eshell-rewrite-command-hook'.
|
||||||
|
;;; TODO: history: do not save failed commands to file.
|
||||||
|
;;; TODO: history: do not store duplicates
|
||||||
|
;;; TODO: history: Shared history? Check apropos: "esh hist".
|
||||||
(setq eshell-input-filter
|
(setq eshell-input-filter
|
||||||
(lambda (str)
|
(lambda (str)
|
||||||
(not (or (string= "" str)
|
(not (or (string= "" str)
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
;; - evil-org: Depends on MELPA's org-mode, too big a dependency for me.
|
;; - evil-org: Depends on MELPA's org-mode, too big a dependency for me.
|
||||||
;; See https://github.com/Somelauw/evil-org-mode/blob/master/doc/keythemes.org for inspiration.
|
;; See https://github.com/Somelauw/evil-org-mode/blob/master/doc/keythemes.org for inspiration.
|
||||||
|
|
||||||
|
;; TODO: Agenda keys are not right, M-j is shadowed.
|
||||||
|
|
||||||
(evil-define-key 'normal org-mode-map
|
(evil-define-key 'normal org-mode-map
|
||||||
(kbd "M-<return>") (lambda () (interactive) (evil-insert 1) (org-meta-return))
|
(kbd "M-<return>") (lambda () (interactive) (evil-insert 1) (org-meta-return))
|
||||||
"L" 'org-shiftright
|
"L" 'org-shiftright
|
||||||
|
|
|
@ -7,10 +7,13 @@
|
||||||
;; - Navigating through the marks randomly produces a "Marker points into wrong buffer" error.
|
;; - Navigating through the marks randomly produces a "Marker points into wrong buffer" error.
|
||||||
;; https://github.com/emacs-evil/evil/issues/845#issuecomment-306050231
|
;; https://github.com/emacs-evil/evil/issues/845#issuecomment-306050231
|
||||||
|
|
||||||
;; TODO: Make Evil commands react more dynamically with read-only text.
|
;; TODO: Make Evil commands react more dynamically with read-only text, like eshell, wdired.
|
||||||
;; Add support for I, C, D, S, s, c*, d*, R, r.
|
;; Add support for I, C, D, S, s, c*, d*, R, r.
|
||||||
;; See https://github.com/emacs-evil/evil/issues/852.
|
;; See https://github.com/emacs-evil/evil/issues/852.
|
||||||
|
|
||||||
|
;; REVIEW: 'cw' fails on the last character of the line when \n does not terminate it.
|
||||||
|
;; See https://github.com/emacs-evil/evil/issues/863.
|
||||||
|
|
||||||
;; Several packages handle relative line numbering:
|
;; Several packages handle relative line numbering:
|
||||||
;; - nlinum-relative: Seems slow as of May 2017.
|
;; - nlinum-relative: Seems slow as of May 2017.
|
||||||
;; - linum-relative: integrates well but not with fringe string, must be a function.
|
;; - linum-relative: integrates well but not with fringe string, must be a function.
|
||||||
|
|
|
@ -89,6 +89,10 @@
|
||||||
(define-key eshell-mode-map (kbd "M-p") 'helm-eshell-history))
|
(define-key eshell-mode-map (kbd "M-p") 'helm-eshell-history))
|
||||||
(add-hook 'eshell-mode-hook 'helm/eshell-set-keys)
|
(add-hook 'eshell-mode-hook 'helm/eshell-set-keys)
|
||||||
|
|
||||||
|
;; TODO: Use helm-ff history in helm file completion.
|
||||||
|
;; https://github.com/emacs-helm/helm/issues/1118
|
||||||
|
;; (define-key helm-read-file-map (kbd "M-p") 'helm-ff-run-switch-to-history)
|
||||||
|
|
||||||
;;; Do not exclude any files from 'git grep'.
|
;;; Do not exclude any files from 'git grep'.
|
||||||
(setq helm-grep-git-grep-command "git --no-pager grep -n%cH --color=always --full-name -e %p -- %f")
|
(setq helm-grep-git-grep-command "git --no-pager grep -n%cH --color=always --full-name -e %p -- %f")
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
;;; LaTeX
|
;;; LaTeX
|
||||||
;;; WARNING: This file is loaded from a hook.
|
;;; WARNING: This file is loaded from a hook.
|
||||||
|
|
||||||
|
;;; TODO: `beginning-of-defun'/`end-of-defun' should go to next section.
|
||||||
|
|
||||||
;;; We use the TeX setup.
|
;;; We use the TeX setup.
|
||||||
(require 'init-tex)
|
(require 'init-tex)
|
||||||
(require 'latex-pretty-symbols nil t)
|
(require 'latex-pretty-symbols nil t)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
;;; Org mode
|
;;; Org mode
|
||||||
|
|
||||||
|
;;; TODO: org-import should be able to parse "|" in CSV files.
|
||||||
|
|
||||||
(define-key org-mode-map (kbd "C-c C-a") 'org-agenda)
|
(define-key org-mode-map (kbd "C-c C-a") 'org-agenda)
|
||||||
|
|
||||||
(setq
|
(setq
|
||||||
|
|
|
@ -228,6 +228,7 @@
|
||||||
;;; Let Emacs auto-load/save sessions only when running the daemon.
|
;;; Let Emacs auto-load/save sessions only when running the daemon.
|
||||||
;;; `server-running-p' is only useful once the daemon is started and cannot be
|
;;; `server-running-p' is only useful once the daemon is started and cannot be
|
||||||
;;; used for initialization. We use `daemonp' instead.
|
;;; used for initialization. We use `daemonp' instead.
|
||||||
|
;;; TODO: Desktop does not get saved when Emacs quits. When does it get saved?
|
||||||
;;; TODO: `desktop-kill' should not query the user in `kill-emacs-hook'.
|
;;; TODO: `desktop-kill' should not query the user in `kill-emacs-hook'.
|
||||||
;;; TODO: Desktop mode does not save window registers properly.
|
;;; TODO: Desktop mode does not save window registers properly.
|
||||||
;;; See https://groups.google.com/forum/#!topic/gnu.emacs.help/64aO_O43530
|
;;; See https://groups.google.com/forum/#!topic/gnu.emacs.help/64aO_O43530
|
||||||
|
@ -301,6 +302,7 @@
|
||||||
(global-set-key (kbd "C-x k") 'kill-this-buffer)
|
(global-set-key (kbd "C-x k") 'kill-this-buffer)
|
||||||
|
|
||||||
;;; Ediff
|
;;; Ediff
|
||||||
|
;;; TODO: Ediff does not seem to auto-refine. Bug? Compare daemon and no-daemon.
|
||||||
(setq ediff-window-setup-function 'ediff-setup-windows-plain
|
(setq ediff-window-setup-function 'ediff-setup-windows-plain
|
||||||
ediff-split-window-function 'split-window-horizontally)
|
ediff-split-window-function 'split-window-horizontally)
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
(set-face-background 'region "#191970")
|
(set-face-background 'region "#191970")
|
||||||
(set-face-attribute 'isearch nil :foreground 'unspecified :background "#2f4f4f" :box "white")
|
(set-face-attribute 'isearch nil :foreground 'unspecified :background "#2f4f4f" :box "white")
|
||||||
(set-face-attribute 'lazy-highlight nil :inherit 'isearch :foreground 'unspecified :background 'unspecified :box nil)
|
(set-face-attribute 'lazy-highlight nil :inherit 'isearch :foreground 'unspecified :background 'unspecified :box nil)
|
||||||
|
;;; TODO: Highlight with box does not render well in Sx, ediff, occur, evil-search.
|
||||||
(set-face-attribute 'highlight nil :background 'unspecified :box "white")
|
(set-face-attribute 'highlight nil :background 'unspecified :box "white")
|
||||||
(set-face-attribute 'error nil :foreground "red" :weight 'bold)
|
(set-face-attribute 'error nil :foreground "red" :weight 'bold)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue