From 1d591520f31054e92e02a125566d9fea0b8db60f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Hauspie?= <michael.hauspie@univ-lille.fr>
Date: Mon, 8 Jul 2024 15:28:56 +0200
Subject: [PATCH] Clean some parts

---
 configuration.org | 56 +++++++----------------------------------------
 1 file changed, 8 insertions(+), 48 deletions(-)

diff --git a/configuration.org b/configuration.org
index 6c5ab02..1c60404 100644
--- a/configuration.org
+++ b/configuration.org
@@ -3,6 +3,7 @@
 #+email: michael.hauspie@univ-lille.fr
 #+language: en
 #+property: header-args :results none
+#+OPTIONS: toc:t
 
 Some of my configuration entries where borrowed from other people, see
 [[*Acknowledgment][Acknowledgment]] section for a list.
@@ -304,20 +305,10 @@ Some of my configuration entries where borrowed from other people, see
 
 ** Modeline
 
-   Use =moody= for a nice looking bottom modeline
-
-   #+begin_src emacs-lisp
-;; (use-package moody
-;;   :config
-;;   (setq x-underline-at-descent-line t
-;;         moody-mode-line-height 10)
-;;   (moody-replace-mode-line-buffer-identification)
-;;  (moody-replace-vc-mode))
-   #+end_src
-
    Tweak how some modeline elements are displayed
 
    #+begin_src emacs-lisp
+
 ;; Show line and column number in mode line
 (column-number-mode t)
 (line-number-mode t)
@@ -486,9 +477,6 @@ Some of my configuration entries where borrowed from other people, see
 (define-key org-mode-map (kbd "C-c [") 'org-reftex-citation)
    #+end_src
 
-   #+RESULTS:
-   : org-reftex-citation
-
    Define a document class that do not use parts and start with chapters
 
    #+begin_src emacs-lisp
@@ -639,6 +627,8 @@ Some of my configuration entries where borrowed from other people, see
 
 ** Tree slide
 
+Tree slide displays an org file as /slides/
+
    #+begin_src emacs-lisp
 (use-package org-tree-slide
   :config
@@ -672,9 +662,6 @@ Some of my configuration entries where borrowed from other people, see
 (use-package ox-pandoc)
    #+end_src
 
-   #+RESULTS:
-
-
    Configure code highlighting using [[https://www.ctan.org/pkg/minted][minted]] (which uses
    [[https://pygments.org/][Pygments]] as an external tool) for latex export
 
@@ -766,9 +753,6 @@ Some of my configuration entries where borrowed from other people, see
 (setq org-babel-min-lines-for-block-output 10)
    #+end_src
 
-   #+RESULTS:
-   : 10
-
 ** Transform json results to org-table
 
    I found a nice way to use json results in org mode by transforming a
@@ -814,8 +798,6 @@ Some of my configuration entries where borrowed from other people, see
   )
   #+end_src
 
-  #+RESULTS:
-
   Then, add backends and company tweaks. 
 
   =company-box= adds icons to company complete list. It is useful when
@@ -970,7 +952,6 @@ Some of my configuration entries where borrowed from other people, see
       c-basic-offset 4)
     #+end_src
 
-    #+RESULTS:
 
 *** Rust 
 
@@ -980,29 +961,11 @@ Some of my configuration entries where borrowed from other people, see
 (use-package rust-mode
   :custom
   (lsp-rust-server 'rust-analyzer)
-                                        ;        (rust-format-on-save t)
-
-  )
-    #+end_src
-
-    For this to work, you need to install =rust-analyzer= and =rustmft=. 
-
-    #+begin_src bash :results output verbatim
-if [[ "$OSTYPE" =~ ^darwin ]]
-then
-    echo "Installing for macos"
-    binary=rust-analyzer-mac
-else
-    echo "Installing for linux"
-    binary=rust-analyzer-linux
-fi
-curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/$binary -o ~/.cargo/bin/rust-analyzer
-chmod +x ~/.cargo/bin/rust-analyzer
+)
     #+end_src
 
-    #+RESULTS:
-    : Installing for macos
-
+    For this to work, you need to install =rust-analyzer= and =rustmft=. This can be done using
+    =rustup=.
 
     Adds cargo installed binaries to exec path
 
@@ -1178,8 +1141,7 @@ cargo install slint-lsp
 (global-set-key (kbd "C-c s") 'mh/spellcheck)
   #+end_src
 
-  Binding to fix a word /then/ go to the next error. Special syntax
-  =[?\C-\$]= is used to protect the =$= sign
+  Binding to fix a word /then/ go to the next error. 
 
   #+begin_src emacs-lisp
 (defun mh/cycle-spellcheck ()
@@ -1199,8 +1161,6 @@ cargo install slint-lsp
 (use-package flycheck-grammalecte)
    #+end_src
 
-   #+RESULTS:
-
 * Misc.
 
   Adds =/usr/local/bin= to Emacs =exec-path=
-- 
GitLab