Bonjour bonjour,
J'ai tenté de me mettre à org roam et j'étais en train de me dire que c'était top lorsque je me suis rendu compte que org agenda ne fonctionnait plus. J'ai le message d'erreur suivant :
invalid fuction (date date)
J'ai bien tenté de commenter la partie de mon init.el correspondant à org roam, mais cela ne change rien.
J'ai également désinstaller / réinstaller emacs, mais sans succès....
SI quelq'un a une idée....
Merci d'avance
Wissam
PS : Voici mon init.el:
;;----------------- Trucs généraux ------------------------------------
(setq inhibit-startup-message t)
(setq default-directory "/mnt/489154130EF35CE8/Nextcloud")
;(setq-default cursor-type 'bar)
(scroll-bar-mode -1) ; Disable visible scrollbar
(tool-bar-mode -1) ; Disable the toolbar
(tooltip-mode -1) ; Disable tooltips
(set-fringe-mode 10) ; Give some breathing room
(menu-bar-mode -1) ; Disable the menu bar
;; Set up the visible bell
(setq visible-bell t)
(global-display-line-numbers-mode 1)
(setq column-number-mode t)
(setq-default auto-fill-function 'do-auto-fill)
(setq-default fill-column 90)
;; Initialize package sources
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("nongnu" . "https://elpa.nongnu.org/nongnu/")
("gnu" . "https://elpa.gnu.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")
))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(require 'use-package)
(setq use-package-always-ensure t)
(use-package auto-package-update
:custom
(auto-package-update-interval 7)
(auto-package-update-prompt-before-update t)
(auto-package-update-hide-results t)
:config
(auto-package-update-maybe)
(auto-package-update-at-time "09:00"))
;; Pour répondre aux question avec y ou n :
(fset 'yes-or-no-p 'y-or-n-p)
;; trasparence
;; Make frame transparency overridable
(defvar efs/frame-transparency '(100 . 100))
;; Set frame transparency
(set-frame-parameter (selected-frame) 'alpha efs/frame-transparency)
(add-to-list 'default-frame-alist `(alpha . ,efs/frame-transparency))
(set-frame-parameter (selected-frame) 'fullscreen 'maximized)
(add-to-list 'default-frame-alist '(fullscreen . maximized))
;; ------------------- auto completion -----------------
(use-package ivy
:diminish
:bind (("C-s" . swiper))
:config
(ivy-mode 1))
(use-package ivy-rich
:after ivy
:init
(ivy-rich-mode 1))
(use-package counsel
:bind (("C-M-j" . 'counsel-switch-buffer))
:custom
(counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
:config
(counsel-mode 1))
(use-package ivy-prescient
:after counsel
:custom
(ivy-prescient-enable-filtering nil)
:config
;; Uncomment the following line to have sorting remembered across sessions!
;(prescient-persist-mode 1)
(ivy-prescient-mode 1))
;; -------------------------Yasnippet --------------------------------
(use-package yasnippet
:diminish yas-minor-mode
:config
(use-package yasnippet-snippets) ; package avec tout pleins de snippets
:hook (after-init . yas-global-mode))
;; intégration avec ivy
(use-package ivy-yasnippet
:commands ivy-yasnippet--preview
:bind ("s-y" . ivy-yasnippet)
:config (advice-add #'ivy-yasnippet--preview :override #'ignore))
;; Pour ne pas avoir de line blanche après snippets
(setq-default require-final-newline nil)
;; ---------------------------------LaTeX ----------------------------------
;; table des matières interactives
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
;;indentation des items
(setq LaTeX-item-indent 0)
;; pour avoir automatiquement (ou pas) les accolades -> mettre nil si on les veut pas
(setq-default TeX-electric-sub-and-superscript nil)
;; Ajout des macros / environnements pour AucTeX
(add-hook 'LaTeX-mode-hook
(lambda ()
(TeX-add-symbols '("dfrac" 2))
(TeX-add-symbols '("textcolor" 2))
(LaTeX-add-environments '("dingautolist" LaTeX-env-item )) ;
;;cours
(LaTeX-add-environments "aConnaitre")
(LaTeX-add-environments '("listeAC" LaTeX-env-item)) ;environement + item
(TeX-add-symbols '("formule" 2))
(LaTeX-add-environments "ex")
(TeX-add-symbols "cadre")
(LaTeX-add-environments "demo" )
(LaTeX-add-environments "ptMath")
(TeX-add-symbols "attention")
;activités
(LaTeX-add-environments '("docLarge" "titre" "autre")) ; ac 2 arguments
(TeX-add-symbols '("doc" 1)); macro avec un argument
;;pdt
(LaTeX-add-environments '("jeSaisFaire"))
(TeX-add-symbols '("capacite" 2))
(LaTeX-add-environments "activites")
(LaTeX-add-environments '("solutionorbox"["largeur"]))
(LaTeX-add-environments "checkboxes")
(TeX-add-symbols '("jesaisfaire" ))
))
;; Mode outline par défaut pour dépliage des sections
(add-hook 'LaTeX-mode-hook #'outline-minor-mode)
;;------------------ Babel -----------------------------
(setq python-shell-interpreter "/usr/bin/python3")
(setq org-babel-python-command "/usr/bin/python3")
;; active Babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((python . t)))
;; -------------------Thèmes -----------------------------
;;(load-theme 'deeper-blue t)
(use-package spacemacs-theme
:ensure t
:no-require t
:init
(load-theme 'spacemacs-dark t))
;; -------------------------Org mode ------------------------------------------
(use-package org
:pin org
:commands (org-capture org-agenda)
:config
(setq org-ellipsis " ▼")
(setq org-hide-emphasis-markers t)
(setq org-agenda-start-with-log-mode t)
;; (setq org-log-done 'time)
(setq org-log-into-drawer t)
(setq org-todo-keywords
'((sequence "TODO(t)" "EN-COURS(e)" "FAIT(f)")))
(setq org-todo-keyword-faces
'(( "EN-COURS" . (:foreground "yellow" :weight bold))
("FAIT" . (:foreground "LimeGreen" :weight bold))))
)
(use-package org-bullets
:hook (org-mode . org-bullets-mode)
:custom
(org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●")))
;;
;; Accès à org-agenda depuis n'importe quel buffer même si pas org-mode
(global-set-key (kbd "C-c a") #'org-agenda)
;; (setq org-agenda-directory "/mnt/489154130EF35CE8/Nextcloud/org")
(setq org-agenda-files
'("/mnt/489154130EF35CE8/Nextcloud/org/notes_pro.org"
"/mnt/489154130EF35CE8/Nextcloud/org/anniversaires.org"
"/mnt/489154130EF35CE8/Nextcloud/org/1e5_pp.org"
"/mnt/489154130EF35CE8/Nextcloud/org/correction.org"
"/mnt/489154130EF35CE8/Nextcloud/org/prepa_cours.org"
"/mnt/489154130EF35CE8/Nextcloud/org/1e6.org"
"/mnt/489154130EF35CE8/Nextcloud/org/2de5_6.org"))
;; --------------------------Org Roam--------------------------
;; (use-package org-roam
;; :ensure t
;; :custom
;; (org-roam-directory "/mnt/489154130EF35CE8/Nextcloud/roamNotes")
;; ;; (org-roam-completion-everywhere t)
;; :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)
;; :map org-mode-map
;; ("C-M-i" . completion-at-point)
;; )
;; :config
;; (org-roam-setup))
;;---------------------- ajout automatique de custom --------------
(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.
'(package-selected-packages
(quote
(company-statistics counsel use-package yasnippet-snippets find-file-in-project elpy))))
(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.
)