pharma|\|ë|2[)

My emacs init file

~/.emacs.d/init.el is a symbolic links to a file ruled by a git repo. Here is my emacs init file :

; -----------------------------------------------------------------–— ; Général

;; Mode texte en auto-fill par défaut (créé une nouvelle ligne à ;; chaque fois que vous tapez du texte).

;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. ;; You may delete these explanatory comments. (package-initialize)

(add-hook 'text-mode-hook 'turn-on-auto-fill)

;; Ne coupe pas le mot quand il atteint le bout de la ligne (visual-line-mode t) (setq truncate-partial-width-windows t)

;; Affiche le numéro de ligne ;; (global-linum-mode t)

;; Affiche le numéro de colonne (column-number-mode t)

;; Place les sauvegardes dans un unique fichier. (setq backup-directory-alist `(("." . "~/.sauvegardesemacs")))

;; Indente avec des tabulations plutôt qu'avec des espaces. (setq indent-tab-mode t)

;; Lance le navigateur eww quand je tape C-c C-o (ou RET) sur un lien. (setq browse-url-browser-function 'eww-browse-url) (setq eww-search-prefix "https://tontonroger.org/?q=") (setq eww-download-directory "~/Téléchargements/")

(setq-default ispell-program-name "aspell")

;; Lance le mode ede

(global-ede-mode t)

;; Lance le po-mode. (setq auto-mode-alist (cons '("\\.po\\'\\|\\.po\\." . po-mode) auto-mode-alist)) (autoload 'po-mode "po-mode" "Major mode for translators to edit PO files" t)

;; Lance le markdown-mode. (load-file "/home/nico/Installations/git/markdown-mode/markdown-mode.el")

(autoload 'markdown-mode "markdown-mode" "Major mode for editing Markdown files" t) (add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.page\\'" . markdown-mode))

;; Lance le rust-mode

;;(add-to-list 'load-path "home/nico/Installations/git/rust-mode") ;;(autoload 'rust-mode "rust-mode" nil t) ;;(require 'rust-mode)

;; Lance le mode elpy pour Python

;; Lance le jabber-mode. ;; adjust this path: ;; (add-to-list 'load-path "/home/nico/Installations/git/emacs-jabber") ;; For 0.7.1 and below: ;; (require 'jabber) ;; For 0.7.90 and above: ;; (require 'jabber-autoloads)

; -----------------------------------------------------------------–— ; Chargement d'extensions

;; Ajoute ce dossier pour des extension officielle d'Org-mode ;; (add-to-list 'load-path "~/Installations/git/org-mode/contrib/lisp/")

;; Charge la fonction de génération d'une feuille RSS (MARCHE PAS !!!)

(load-file "home/nico.emacs.d/ox-rss.el")

;; Lance le lecteur audio. MARCHE PAS !!! ;; (add-to-list 'load-path "~/Installations/git/emms/") ;; (require 'emms-setup) ;; (emms-all) ;; (emms-default-players) ;; (setq emms-source-file-default-directory "~/Musique/")

; -----------------------------------------------------------------–— ; Thème - Affichage

;; Enlève la barre de menu (menu-bar-mode 0)

; -----------------------------------------------------------------–— ; Calendrier

;; la semaine commence le lundi (setq calendar-week-start-day 1)

;; jours et mois en francais dans le calendrier (defvar calendar-day-abbrev-array ["dim" "lun" "mar" "mer" "jeu" "ven" "sam"]) (defvar calendar-day-name-array ["dimanche" "lundi" "mardi" "mercredi" "jeudi" "vendredi" "samedi"]) (defvar calendar-month-abbrev-array ["jan" "fév" "mar" "avr" "mai" "jun" "jul" "aou" "sep" "oct" "nov" "déc"]) (defvar calendar-month-name-array ["janvier" "février" "mars" "avril" "mai" "juin" "juillet" "aout" "septembre" "octobre" "novembre" "décembre"])

; -----------------------------------------------------------------–— ; Ruby

(setq ruby-insert-encoding-magic-comment nil)

; -----------------------------------------------------------------–— ; ERC

;(setq erc-autojoin-channels-alist ; '(("freenode.net" "#grifon" "#emacsfr" )) ; )

;; autres canaux : #fsf #fsfe #april #framasoft #emacs #erc "#chatons" ;; #gentoofr #sabayon "#parabola" "#archlinux-fr" "#manjaro-fr" ;; "#bepo" "#ergodis" "#capfix" "#laferriere" "#librehealthcare" ;; "#librehealthcare-fr"

;; autres serveur : irc.geeknode.org #ffdn

; -----------------------------------------------------------------–— ; w3

(setq w3-default-homepage "http://fr.wikipedia.org/")

; -----------------------------------------------------------------–— ; TeX, LaTeX, AucTeX etc…

(defun turn-on-outline-minor-mode () (outline-minor-mode 1)) (add-hook 'LaTeX-mode-hook 'turn-on-outline-minor-mode) (add-hook 'latex-mode-hook 'turn-on-outline-minor-mode)

(add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-plug-into-AUCTeX t)

; -----------------------------------------------------------------–— ; Org-mode

;; Raccourcis généraux d'Org-mode

(global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-cc" 'org-capture) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb)

; -----------------------------------------------------------------–— ; Org-mode : flux RSS

(setq org-feed-alist '(("Framablog" "http://framablog.org/feed" "~/txt/org/feeds.org" "Entrées du Framablog")))

; -----------------------------------------------------------------–— ; Org-export (vers LaTeX)

(require 'ox-latex) (unless (boundp 'org-latex-classes) (setq org-latex-classes nil))

(add-to-list 'org-latex-classes '("book" "\\documentclass{book} \\usepackage{xltxtra} \\usepackage[francais]{babel} \\setmainfont{Linux Libertine O} \\usepackage{shorttoc} \\usepackage{url} \\usepackage{graphicx} \\usepackage{subfig} \\usepackage{tipa} [NO-DEFAULT-PACKAGES]" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

;(add-to-list 'org-latex-classes ; '("beamer" ; "\\documentclass{beamer} ;\\usepackage{xltxtra} ;\\usepackage[francais]{babel} ;\\setmainfont{Linux Libertine O} ;\\usepackage{shorttoc} ;\\usepackage{url} ;\\usepackage{graphicx} ;\\usepackage{subfig} ;\\usepackage{tipa} ; [NO-DEFAULT-PACKAGES]"))

(add-to-list 'org-latex-classes '("petitlivre" "\\documentclass{book} \\usepackage{xltxtra} \\usepackage[francais]{babel} \\setmainfont{Linux Libertine O} \\usepackage{shorttoc} \\usepackage{url} \\usepackage{graphicx} \\usepackage{subfig} \\usepackage{tipa} [NO-DEFAULT-PACKAGES]" ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

; Polices qui fonctionnent bien : ; \\setmainfont{Linux Libertine O}

; -----------------------------------------------------------------–— ; Org-agenda

(setq org-agenda-files (list "~/Documents/Travaux/Nico/doubleetoile/perso.org" "~/Documents/Travaux/Nico/doubleetoile/maison.org" "~/Documents/Travaux/Nico/doubleetoile/travail.org" "~/Documents/Travaux/Nico/doubleetoile/LeNeuviemeAge.org" "~/Documents/Travaux/Nico/doubleetoile/NL.org" "~/Documents/Travaux/Nico/doubleetoile/Numérion.org" "~/Documents/Travaux/Nico/doubleetoile/Syntax.org" ))

(setq org-agenda-include-diary t)

; -----------------------------------------------------------------–— ; Org-capture

(setq org-capture-templates '( ("a" "Agenda personnel" entry (file+headline "~/Documents/Travaux/Nico/doubleetoile/perso.org" "Rendez-vous") "* %?\n %a\n Rendez-vous ajouté le %U\n") ("b" "Agenda de travail" entry (file+headline "~/Documents/Travaux/Nico/doubleetoile/travail.org" "Rendez-vous") "* %?\n %a\n Rendez-vous ajouté le %U\n") ("c" "Agenda de la maison" entry (file+headline "~/Documents/Travaux/Nico/doubleetoile/maison.org" "Rendez-vous") "* %?\n %a\n Rendez-vous ajouté le %U\n") ("t" "Liste de tâches personnelles" entry (file+headline "~/Documents/Travaux/Nico/doubleetoile/perso.org" "Tâches") "* %?\n %a\n Tâche ajoutée le %U\n") ("w" "Liste des tâches de travail" entry (file+headline "~/Documents/Travaux/Nico/doubleetoile/travail.org" "Tâches") "* %?\n %a\n Tâche ajoutée le %U\n") ("x" "Liste des tâches de la maison" entry (file+headline "~/Documents/Travaux/Nico/doubleetoile/maison.org" "Tâches") "* %?\n %a\n Tâche ajoutée le %U\n") ("j" "Journal personnel" entry (file+datetree "~/Documents/Travaux/Nico/doubleetoile/journal.org") "* %?\nPage rédigée le %U\n") ("n" "Boîte d'entrée de notes diverses" entry (file+headline "~/Documents/Travaux/Nico/notes/notesperso.org" "Boîte d'entrée") "* %?\n %a\n Note ajoutée le %U\n") ))

; -----------------------------------------------------------------–— ; Org-publish

;; à ajouter plus tard : <a href=\"https://www.facebook.com/sharer/sharer.php?u=http&#37;3A&%2337;2F&%2337;2F\"><img src=\"./img/tiers/by-sa.png\" alt=\"Promouvoir sur Facebook\" title=\"Promouvoir cette publication sur Facebook\" /></a>

;; (setq org-export-html-style-include-default nil)

(setq org-publish-project-alist

; Pharmanerd

'(("pharmanerd-notes" :base-directory "~/Documents/Travaux/Nico/www/" :base-extension "org" :publishing-directory "~/Documents/Sauvegardes/www.pharmanerd.flqt.fr/" :recursive t :exclude "brouillons.org\\|^~" :publishing-function org-html-publish-to-html :html-head-include-default-style nil :html-head-include-scripts nil :with-toc nil :with-timestamp t :auto-sitemap t :sitemap-sort-files alphabetically :sitemap-filename "sitemap.org" :sitemap-title "Sommaire" :language fr :with-author "Nicolas Floquet" :with-email "n@flqt.fr" :html-head-extra " <link rel=\"stylesheet\" type=\"text/css\" href=\"./css/style.css\" /> <link rel=\"icon\" href=\"img/triples/prompt16pharmanerd.png\">"

:section-numbers nil

:html-preamble "

<div class=\"nav\"> <ul> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/index.html\">Accueil</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/about.html\">&Agrave; propos</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/now.html\">En ce moment</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/contribs.html\">Contributions</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/sitemap.html\">Publications</a></li> </ul> </div>

<div class=\"clear\"></div>

<div class=\"title\"><a href=\"http://www.pharmanerd.flqt.fr/Z/index.html\">pharma|&#92;|&euml;|2[)</a></div>

<div class=\"nav\"> <ul> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/archives.html\">Archives</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/sitemap.html\">Sommaire</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/index.xml\">Flux RSS</a></li> <li><a href=\"http://www.pharmanerd.flqt.fr/Z/pastebin.html\">Pastebin</a></li> </ul> </div>"

:html-postamble "

<div class=\"topleftbutton\"> <a href=\"http://www.pharmanerd.flqt.fr/Z/about.html\"><img src=\"./img/triples/moi2.jpg\" alt=\"Moi\" title=\"Ça, c'est du selfie ! ^^\" /></a> <a href=\"http://creativecommons.org/licenses/by-sa/3.0/fr\"><img src=\"./img/tiers/by-sa.png\" alt=\"CC-BY-SA\" title=\"CC-BY-SA\" /></a> <a href=\"https://gnusocial.no/nicolasfloquet59\"><img src=\"gnu-social-logo.png\" /></a> <a href=\"https://git.framasoft.org/nflqt\"><img src=\"http://t1.gstatic.com/images?q=tbn:ANd9GcQ0iDEXtya0mnkWHSDGOuUjLgOh6E8dx4Vy88Qy9V0XThekDmjZJPz4u8U\" /></a> <a href=\"https://www.parrain-linux.com/espacemembre.php?page=profil&pseudo=nicoals#\"><img src=\"promotion.php?image=Rectangle-PL.png&membre=nicoals\" /></a> <p><a href=\"mailto:n@flqt.fr\"><img src=\"./img/triples/enveloppe.png\" alt=\"Send me an email.\" title=\"Send me an email.\" /></a></p> </div>

<div class=\"toprightbutton\"> <a href=\"https://fsfe.org/campaigns/ilovefs\"><img src=\"ilovefs-postcard-front-thumb.png\" alt=\"I love Free Software\"></a> <a href=\"http://u.fsf.org/16e\"><img src=\"fsfs_icons_beige-bg.png\" alt=\"Free Software, Free Society\"></a> <a title=\"Lien vers la page de datalove\" href=\"http://datalove.me/\"> <img alt=\"Datalove\" src=\"img/tiers/datalove-heart1-empty-grey.png\"> </a> <a title=\"Lien vers la page de l'USPO.\" href=\"http://www.uspo.fr/category/monopole-officinal/\"> <img alt=\"Liberté professionnelle\" src=\"img/tiers/pharmaciencrucifie.jpg\"> </a> <a title=\"Lien vers le texte de Stallman : Pourquoi le logiciel libre est encore plus essentiel maintenant.\" href=\"http://www.gnu.org/philosophy/free-software-even-more-important.html\"> <img alt=\"Privacy\" src=\"img/tiers/privacy-free-software-sign.png\"> </a> <a title=\"Lien vers la page de l'April sur l'opération « Reset the Net »\" href=\"http://www.april.org/reset-net-reinitialisons-le-net-le-5-juin-2014\"> <img alt=\"Journée internationale contre les DRM\" src=\"img/tiers/square-take-back.png\"> </a> </div>

<div class=\"mentions\">

<p>&copy; <a href=\"mailto:n@flqt.fr\" title=\"Envoyer un mail à l&apos;auteur de ce blog\">Nicolas Floquet</a> - <a href=\"http://creativecommons.org/licenses/by-sa/3.0/fr/\" >CC-BY-SA</a> | Site &eacute;dit&eacute; sous <a href=\"https://fr.wikipedia.org/wiki/Gnu_Emacs\" title=\"L'&eacute;diteur de texte\">%c</a>, presque <a href=\"http://www.auto-hebergement.fr/\">auto-h&eacute;berg&eacute;</a> chez <a href=\"https://grifon.fr\">Grifon</a> avec <a href=\"https://www.debian.org/\" >Debian</a> et <a href=\"http://wiki.nginx.org/\" >Nginx</a>. Th&egrave;me graphique d&eacute;riv&eacute; de <a href=\"http://ressources.pluxml.org/?theme90/theme-dark-blue\">Dark & Blue</a>.</p>

</div> " )

("pharmanerd-static" :base-directory "~/Documents/Travaux/Nico/www/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/Documents/Sauvegardes/www.pharmanerd.flqt.fr/" :recursive t :publishing-function org-publish-attachment )

("pharmanerd-rss" :base-directory "~/Documents/Travaux/Nico/www/" :base-extension "org" :html-link-home "http://www.pharmanerd.flqt.fr/Z/" :publishing-directory "~/Documents/Sauvegardes/www.pharmanerd.flqt.fr/" :publishing-function (org-rss-publish-to-rss) :html-link-use-abs-url t :section-numbers nil :exclude ".*" :with-tasks nil :include ("Z/index.org" "Z/contribs.org") :with-toc nil )

("pharmanerd" :components ("pharmanerd-notes" "pharmanerd-static" "pharmanerd-rss"))

)) (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. '(custom-enabled-themes nil) '(ede-project-directories '("/tmp/myproject/include" "/tmp/myproject/src" "/tmp/myproject" "/home/nico/Documents/Travaux/Bidouilles/2023-apprentissagepython/Exercices")) '(package-selected-packages '(python markdown-mode magit))) (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. )

Moi CC-BY-SA

Send me an email.

I love Free Software Free Software, Free Society Datalove Liberté professionnelle Privacy Journée internationale contre les DRM

© Nicolas Floquet - CC-BY-SA | Site édité sous Emacs 28.2 (Org mode 9.5.5), presque auto-hébergé chez Grifon avec Debian et Nginx. Thème graphique dérivé de Dark & Blue.