20241203
This commit is contained in:
parent
e60f96b03c
commit
d2bc5b7115
1 changed files with 50 additions and 9 deletions
|
@ -18,6 +18,7 @@ This function should only modify configuration layer settings."
|
||||||
;; lazy install any layer that support lazy installation even the layers
|
;; lazy install any layer that support lazy installation even the layers
|
||||||
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
|
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
|
||||||
;; installation feature and you have to explicitly list a layer in the
|
;; installation feature and you have to explicitly list a layer in the
|
||||||
|
|
||||||
;; variable `dotspacemacs-configuration-layers' to install it.
|
;; variable `dotspacemacs-configuration-layers' to install it.
|
||||||
;; (default 'unused)
|
;; (default 'unused)
|
||||||
dotspacemacs-enable-lazy-installation 'unused
|
dotspacemacs-enable-lazy-installation 'unused
|
||||||
|
@ -38,14 +39,14 @@ This function should only modify configuration layer settings."
|
||||||
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
|
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
|
||||||
;; `M-m f e R' (Emacs style) to install them.
|
;; `M-m f e R' (Emacs style) to install them.
|
||||||
;; ----------------------------------------------------------------
|
;; ----------------------------------------------------------------
|
||||||
;; auto-completion
|
auto-completion
|
||||||
;; better-defaults
|
better-defaults
|
||||||
org
|
org
|
||||||
emacs-lisp
|
emacs-lisp
|
||||||
;; git
|
;; git
|
||||||
helm
|
helm
|
||||||
;; lsp
|
;; lsp
|
||||||
;; markdown
|
markdown
|
||||||
multiple-cursors
|
multiple-cursors
|
||||||
;; org
|
;; org
|
||||||
;; (shell :variables
|
;; (shell :variables
|
||||||
|
@ -54,6 +55,8 @@ This function should only modify configuration layer settings."
|
||||||
spell-checking
|
spell-checking
|
||||||
;; syntax-checking
|
;; syntax-checking
|
||||||
;; version-control
|
;; version-control
|
||||||
|
(org :variables
|
||||||
|
org-enable-roam-support t)
|
||||||
treemacs)
|
treemacs)
|
||||||
|
|
||||||
|
|
||||||
|
@ -598,6 +601,13 @@ This function is called at the very end of Spacemacs startup, after layer
|
||||||
configuration.
|
configuration.
|
||||||
Put your configuration code here, except for variables that should be set
|
Put your configuration code here, except for variables that should be set
|
||||||
before packages are loaded."
|
before packages are loaded."
|
||||||
|
(with-eval-after-load "ispell"
|
||||||
|
(setq ispell-program-name "hunspell")
|
||||||
|
;; ispell-set-spellchecker-params has to be called
|
||||||
|
;; before ispell-hunspell-add-multi-dic will work
|
||||||
|
(ispell-set-spellchecker-params)
|
||||||
|
(ispell-hunspell-add-multi-dic "en_US,ru_RU")
|
||||||
|
(setq ispell-dictionary "en_US,ru_RU"))
|
||||||
|
|
||||||
(defun transform-square-brackets-to-round-ones(string-to-transform)
|
(defun transform-square-brackets-to-round-ones(string-to-transform)
|
||||||
"Transforms [ into ( and ] into ), other chars left unchanged."
|
"Transforms [ into ( and ] into ), other chars left unchanged."
|
||||||
|
@ -607,11 +617,42 @@ before packages are loaded."
|
||||||
(require 'org-protocol)
|
(require 'org-protocol)
|
||||||
(require 'org-capture)
|
(require 'org-capture)
|
||||||
|
|
||||||
|
(use-package org-roam
|
||||||
|
:ensure nil
|
||||||
|
:custom
|
||||||
|
(org-roam-directory "~/org/roam/")
|
||||||
|
:config
|
||||||
|
(setq org-roam-completion-everywhere t)
|
||||||
|
(setq org-roam-database-connector 'sqlite-builtin)
|
||||||
|
(setq org-roam-db-node-include-function
|
||||||
|
(lambda ()
|
||||||
|
(not (member "ATTACH" (org-get-tags)))))
|
||||||
|
(org-roam-db-autosync-mode)
|
||||||
|
)
|
||||||
|
|
||||||
|
(spacemacs/set-leader-keys
|
||||||
|
"aordN" 'org-roam-dailies-capture-today)
|
||||||
|
|
||||||
|
(use-package org-roam-dailies
|
||||||
|
:after org-roam
|
||||||
|
:ensure nil
|
||||||
|
:custom
|
||||||
|
(org-roam-dailies-directory "journal/")
|
||||||
|
:config
|
||||||
|
(setq org-roam-dailies-capture-templates
|
||||||
|
'(("d" "default" entry "* %<%I:%M %p>: %?"
|
||||||
|
:if-new (file+head "daily/%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n")))))
|
||||||
|
|
||||||
(with-eval-after-load 'org
|
(with-eval-after-load 'org
|
||||||
|
(setq org-attach-method 'cp) ;; copy file to an attachments dir.
|
||||||
|
(setq org-attach-id-dir "~/org/attachments/")
|
||||||
|
|
||||||
|
(setq org-adapt-indentation t)
|
||||||
|
(setq org-indent-mode t)
|
||||||
|
(setq org-archive-location "%s_archive::")
|
||||||
(add-hook 'org-mode-hook
|
(add-hook 'org-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq fill-column 80) ;; Установить максимальную длину строки в 80 символов
|
(visual-line-mode 1)))
|
||||||
(turn-on-auto-fill))) ;; Включить авто-перенос строк
|
|
||||||
|
|
||||||
(setq org-agenda-files '("~/org/"))
|
(setq org-agenda-files '("~/org/"))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue