               '(""
                 (eldoc-mode-line-string
                  (" " eldoc-mode-line-string " "))
-                ("%e"
-                 mode-line-front-space
-                 mode-line-mule-info
-                 mode-line-client
-                 mode-line-modified
-                 mode-line-remote
-                 mode-line-frame-identification
-                 mode-line-buffer-identification
-                 "   "
-                 mode-line-position
-                 (vc-mode vc-mode)
-                 "  "
-                 mode-line-modes
-                 mode-line-end-spaces)))
+                "%e"
+                mode-line-front-space
+                mode-line-mule-info
+                mode-line-client
+                mode-line-modified
+                mode-line-remote
+                mode-line-frame-identification
+                mode-line-buffer-identification
+                "   "
+                mode-line-position
+                (vc-mode vc-mode)
+                "  "
+                mode-line-modes
+                mode-line-end-spaces))
 
 ;; show current column
 (column-number-mode)

          ("sp" "Class-related notes with associated document" entry
           (file+function t/daily-file t/org-date-find)
           "* %^{Title} :notes:\n:PROPERTIES:\n:NOTER_DOCUMENT: %F\n:END:\n%U\n\n%?")))
  
  :config
  (setq ;; appearance settings
   org-hide-emphasis-markers nil


;;;; Editor --- Related to editing and inserting text

;; Vim in Emacs, evil in good
(use-package evil
  :straight t

  :hook
  (after-init . evil-mode)
  (org-capture-mode . evil-insert-state)

  :custom
  (evil-undo-system #'undo-redo)      ; enable redo in Emacs 28+
  (evil-want-keybinding nil)          ; evil-collection requirement
  (evil-want-Y-yank-to-eol t)         ; yy copies lines, Y copies to end of line
  (evil-mode-line-format '(after . mode-line-remote)))

;; evil-friendly keybind macros
(use-package general
  :straight t
  :demand t

  :config
  ;; leader key (SPC in Evil mode, C-c in Emacs
  (general-create-definer t/leader-def
    :states '(normal insert emacs)
    :keymaps 'global
    :prefix "SPC"
    :non-normal-prefix "C-c")
  (t/leader-def
    "" nil))

(use-package evil-collection
  :straight t
  :after evil
  :config
  (evil-collection-init))

;;;;; Editor settings

;; set macOS modifier keys
(when (eq system-type 'darwin)
  ;; command is switched with control
  (setq mac-right-option-modifier 'meta
        mac-right-command-modifier 'super
        mac-command-modifier 'super
        mac-control-modifier 'control))

;; don't fully display long lines
(setq-default truncate-lines t)
