Skip to content

Doom Emacs Startup

Published: at 12:00 AM

Table of contents

Open Table of contents

preface

config

How to start emacs?

Boot it background, then use emacsclient to open it.

emacs --daemon
emacsclient -c

close emacs

emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"

close window

C-x k

switch window

C-x o

debug

emacs --debug-init

sync the config

doom/reload

config file

config.el

Font and Theme

theme

Use the doom one package, then pick your favorite one.

Change the font which you already installed on your computer.(Font Book in mac) YgTIIMtest

packages

plugins recommend

keybindings

meta search: M-x M means option

The common workflow need a keybinding to faster the process, such as:

shortkey

change the keybindings

(map! :after org
    :map org-mode-map
    :prefix "C-c"
    "i" #'org-insert-heading
    "d" #'org-next-visible-heading
    "u" #'org-previous-visible-heading
     )

org-mode

The task management system includes TODO, schedule, agenda.

shortcuts

TODO

create todo

C-c C-t

change todo state

space m t

clock in/out

C-c C-x C-i/o

clock table report

Include many files:

:scope ("clocktables.org" "org-files/personal.org")

Use lambda to include:

clocktable :scope (lambda() (directory-files-recursively "~/Downloads/" ".org"))

show duration report

today, thisweek, thismonth

LrkaKntest

schedule

space m d s

circlely task execute after 1day circlely

++1d

agenda

open agenda

space o A

write the org file into custom.el

end