J'essaie de lancer --debug-init depuis la console Windows (en administrateur) avec chacune des commandes suivantes, mais je n'obtiens que la fenêtre d'accueil habituelle :
C:\WINDOWS\system32>"C:\Program Files\Emacs\emacs-28.2\bin\emacs.exe" --debug-init
C:\WINDOWS\system32>"C:\Program Files\Emacs\emacs-28.2\bin\emacs-28.2.exe" --debug-init
C:\WINDOWS\system32>"C:\Program Files\Emacs\emacs-28.2\bin\runemacs.exe" --debug-init
Dans.emacs.d/elpa, je vois plusieurs versions d'extensions parmi quoi :
- compat (29 et 30)
- denote : 1.2, 2.2.4, 3.1.0, 4.0.0 (installée le 13/7...)
- denote-menu : 1.1, 1.2, 1.4
- org 9/7/31
Bizarre que le nettoyage n'ait pas fait disparaître les versions dépassées...
Tant que j'y suis, je vous mets aussi le contenu de .emacs : ça peut être utile
`(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
'(current-language-environment "French")
'(custom-enabled-themes '(wheatgrass))
'(package-selected-packages
'(denote-org denote-menu howm denote debug-print f org-roam-ui org-roam org-notify org org-modern ## auctex auto-correct))
'(warning-suppress-types '(((tar link)))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Validation des éléments de configuration :
;;; Se placer dans l'expression, puis C-M-x
;; Mise à jour de la configuration d'emacs
(setq load-path (cons "~/elisp/org-mode/lisp" load-path))
(setq load-path (cons "~/elisp/org-mode/contrib/lisp" load-path))
;; Chargement automatique de fonctionnalités org
(require 'org-install)
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
;; Conversion d'un fichier org-mode en Markdown
(eval-after-load "org"
'(require 'ox-md nil t))
;; Utilisation des classes koma
;; (require 'ox-latex)
;; (add-to-list 'org-latex-classes
;; '("koma-article" "\documentclass{scrartcl}"
;; ("\section{%s}" . "\section{%s}")
;; ("\subsection{%s}" . "\subsection{%s}")
;; ("\subsubsection{%s}" . "\subsubsection{%s}")
;; ("\paragraph{%s}" . "\paragraph{%s}")
;; ("\subparagraph{%s}" . "\subparagraph{%s}")))
(with-eval-after-load "ox-latex"
(add-to-list 'org-latex-classes
'("koma-article" "\documentclass{scrartcl}"
("\section{%s}" . "\section{%s}")
("\subsection{%s}" . "\subsection{%s}")
("\subsubsection{%s}" . "\subsubsection{%s}")
("\paragraph{%s}" . "\paragraph{%s}")
("\subparagraph{%s}" . "\subparagraph{%s}"))))
;; Word wrap. Visual line mode
(global-visual-line-mode t)
;; utilisation du français
(set-language-environment "UTF-8")
(setq org-latex-packages-alist
'(("AUTO" "babel" nil ("pdflatex"))
("AUTO" "polyglossia" nil ("xelatex" "lualatex"))))
;; Active la roulette de la souris (marche pas…)
;; (custom-set-variables( '(mouse-wheel-mode t nil (mwheel))))
;; Affiche l'heure au format 24h
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)
;; Activer la coloration syntaxique
(global-font-lock-mode t)
;; Afficher la 'parenthèse correspondante'
(require 'paren)
(show-paren-mode)
;; Activer la source d'extension MELPA (emacs lisp package archive)
;;; Melpa
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
;;; ou Melpa-stable
;;; (require 'package)
;;; (add-to-list 'package-archives
;;; '("melpa-stable" . "http://stable.melpa.org/packages/") t)
;;; Ajouts à org-roam [[https://systemcrafters.cc/build-a-second-brain-in-emacs/getting-started-with-org-roam/][SystemCrafters]]. "We'll also add some necessary key bindings and a call to org-roam-setup to make sure everything is ready to go.". Marche pas…
; (use-package org-roam
; :ensure t
; :custom
; (org-roam-directory "~/RoamNotes")
; :bind (("C-c n l" . org-roam-buffer-toggle)
; ("C-c n f" . org-roam-node-find)
; ("C-c n i" . org-roam-node-insert))
; :config
; (org-roam-setup))
;; Indication du dossier rassemblant tous les fichiers org-roam
;(make-directory "~/org-roam")
;(setq org-roam-directory (file-truename "~/org-roam"))
;; Vérification de la disponibilité d'Org-Roam au démarrage
;(org-roam-db-autosync-mode)
;;;; Configuration de base pour [[https://protesilaos.com/emacs/denote#h:d397712c-c8c0-4cfa-ad1a-ef28cf78d1f0][Denote]]
(require 'denote)
;; Remember to check the doc strings of those variables.
(setq denote-directory (expand-file-name "~/Documents/notes/"))
(setq denote-known-keywords '("emacs" "philosophy" "politics" "economics"))
(setq denote-infer-keywords t)
(setq denote-sort-keywords t)
(setq denote-file-type nil) ; Org is the default, set others here
(setq denote-prompts '(title keywords))
(setq denote-excluded-directories-regexp nil)
(setq denote-excluded-keywords-regexp nil)
;; Pick dates, where relevant, with Org's advanced interface:
(setq denote-date-prompt-use-org-read-date t)
;; Read this manual for how to specify `denote-templates'. We do not
;; include an example here to avoid potential confusion.
;; We allow multi-word keywords by default. The author's personal
;; preference is for single-word keywords for a more rigid workflow.
(setq denote-allow-multi-word-keywords t)
(setq denote-date-format nil) ; read doc string
;; By default, we do not show the context of links. We just display
;; file names. This provides a more informative view.
(setq denote-backlinks-show-context t)
;; Also see `denote-link-backlinks-display-buffer-action' which is a bit
;; advanced.
;; If you use Markdown or plain text files (Org renders links as buttons
;; right away)
(add-hook 'find-file-hook #'denote-link-buttonize-buffer)
;; We use different ways to specify a path for demo purposes.
(setq denote-dired-directories
(list denote-directory
(thread-last denote-directory (expand-file-name "attachments"))
(expand-file-name "~/Documents/books")))
;; Generic (great if you rename files Denote-style in lots of places):
;; (add-hook 'dired-mode-hook #'denote-dired-mode)
;;
;; OR if only want it in `denote-dired-directories':
(add-hook 'dired-mode-hook #'denote-dired-mode-in-directories)
;; Here is a custom, user-level command from one of the examples we
;; showed in this manual. We define it here and add it to a key binding
;; below.
(defun my-denote-journal ()
"Create an entry tagged 'journal', while prompting for a title."
(interactive)
(denote
(denote-title-prompt)
'("journal")))
;; Denote DOES NOT define any key bindings. This is for the user to
;; decide. For example:
(let ((map global-map))
(define-key map (kbd "C-c n j") #'my-denote-journal) ; our custom command
(define-key map (kbd "C-c n n") #'denote)
(define-key map (kbd "C-c n N") #'denote-type)
(define-key map (kbd "C-c n d") #'denote-date)
(define-key map (kbd "C-c n z") #'denote-signature) ; "zettelkasten" mnemonic
(define-key map (kbd "C-c n s") #'denote-subdirectory)
(define-key map (kbd "C-c n t") #'denote-template)
;; If you intend to use Denote with a variety of file types, it is
;; easier to bind the link-related commands to the global-map', as
;; shown here. Otherwise follow the same pattern fororg-mode-map',
;; markdown-mode-map', and/ortext-mode-map'.
(define-key map (kbd "C-c n i") #'denote-link) ; "insert" mnemonic
(define-key map (kbd "C-c n I") #'denote-link-add-links)
(define-key map (kbd "C-c n b") #'denote-link-backlinks)
(define-key map (kbd "C-c n f f") #'denote-link-find-file)
(define-key map (kbd "C-c n f b") #'denote-link-find-backlink)
;; Note that denote-rename-file' can work from any context, not just
;; Dired bufffers. That is why we bind it here to theglobal-map'.
(define-key map (kbd "C-c n r") #'denote-rename-file)
(define-key map (kbd "C-c n R") #'denote-rename-file-using-front-matter))
;; Key bindings specifically for Dired.
(let ((map dired-mode-map))
(define-key map (kbd "C-c C-d C-i") #'denote-link-dired-marked-notes)
(define-key map (kbd "C-c C-d C-r") #'denote-dired-rename-marked-files)
(define-key map (kbd "C-c C-d C-R") #'denote-dired-rename-marked-files-using-front-matter))
(with-eval-after-load 'org-capture
(setq denote-org-capture-specifiers "%l\n%i\n%?")
(add-to-list 'org-capture-templates
'("n" "New note (with denote.el)" plain
(file denote-last-path)
#'denote-org-capture
:no-save t
:immediate-finish nil
:kill-buffer t
:jump-to-captured t)))
;; Also check the commands denote-link-after-creating',
;;denote-link-or-create'. You may want to bind them to keys as well.
;; If you want to have Denote commands available via a right click
;; context menu, use the following and then enable
;; context-menu-mode'.
(add-hook 'context-menu-functions #'denote-context-menu)