From 0e79a53dd305c33c9260765ee98ac8c45b268294 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 28 Jan 2020 21:32:38 +0100 Subject: [PATCH] Update html files --- docs/binaries.html | 8 +- docs/config.html | 39 +-- docs/doom.html | 448 ++++++++++++------------ docs/index.html | 824 ++++++++++++++++++++++++--------------------- docs/install.html | 6 +- docs/mail.html | 314 ++++++++++++----- docs/matlab.html | 5 +- docs/music.html | 607 ++------------------------------- docs/ranger.html | 134 +++++--- docs/scripts.html | 8 +- docs/sxhkd.html | 108 +++--- docs/systemd.html | 255 +++++++------- docs/xconfig.html | 105 ++---- 13 files changed, 1245 insertions(+), 1616 deletions(-) diff --git a/docs/binaries.html b/docs/binaries.html index 0ff9606..4dc1cdd 100644 --- a/docs/binaries.html +++ b/docs/binaries.html @@ -4,7 +4,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Binaries @@ -773,7 +773,7 @@ $HOME/.config/polybar/scripts/launch.sh <

readbib

-
cd ~/Cloud/thesis/ressources/pdfs/ && ls | dmenu -l 20 | xargs -I {} zathura {}
+
cd ~/Cloud/thesis/ressources/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {}
 
@@ -783,7 +783,7 @@ $HOME/.config/polybar/scripts/launch.sh <

readnotes

-
cd ~/Cloud/thesis/ressources/notes/ && ls *.pdf | dmenu -l 20 | xargs -I {} zathura {}
+
cd ~/Cloud/thesis/ressources/notes/ && ls *.pdf | rofi -dmenu -lines 20 | xargs -I {} zathura {}
 
@@ -921,7 +921,7 @@ The sed piece just removes the colon from the provided prompt: rofi -p

Author: Dehaeze Thomas

-

Created: 2020-01-11 sam. 22:19

+

Created: 2020-01-28 mar. 21:32

diff --git a/docs/config.html b/docs/config.html index 719e1fd..56e0f08 100644 --- a/docs/config.html +++ b/docs/config.html @@ -4,7 +4,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Configuration Files @@ -265,7 +265,6 @@ for the JavaScript code in this tag.
  • dmenu
  • Locale
  • Pass Git Helper
  • -
  • Clipit (Clipboard Manager)
  • Nitrogen (Wallpaper manager)
  • @@ -438,40 +437,6 @@ default-cache-ttl 60480000 -
    -

    Clipit (Clipboard Manager)

    -
    -
    -
    [rc]
    -use_copy=true
    -use_primary=false
    -synchronize=false
    -automatic_paste=false
    -show_indexes=false
    -save_uris=false
    -use_rmb_menu=false
    -save_history=false
    -history_limit=50
    -items_menu=20
    -statics_show=false
    -statics_items=10
    -hyperlinks_only=false
    -confirm_clear=false
    -single_line=false
    -reverse_history=false
    -item_length=50
    -ellipsize=2
    -history_key=
    -actions_key=
    -menu_key=
    -search_key=
    -offline_key=
    -offline_mode=false
    -
    -
    -
    -
    -

    Nitrogen (Wallpaper manager)

    @@ -495,7 +460,7 @@ default-cache-ttl 60480000

    Author: Dehaeze Thomas

    -

    Created: 2020-01-11 sam. 22:19

    +

    Created: 2020-01-28 mar. 21:32

    diff --git a/docs/doom.html b/docs/doom.html index 42f0bff..04e9da5 100644 --- a/docs/doom.html +++ b/docs/doom.html @@ -1,11 +1,10 @@ - - + Doom Emacs Configuration @@ -263,15 +262,16 @@ for the JavaScript code in this tag.
  • Personal Information
  • Doom Config
  • Evil
  • -
  • Basic +
  • Basic
  • Magit
  • -
  • Org Mode +
  • Org Mode
  • -
    -

    Basic

    -
    +
    +

    Basic

    +

    Visual

    @@ -845,7 +844,7 @@ Documentation: Automatic line wrap.

    -
    (global-visual-line-mode t)
    +
    (global-visual-line-mode nil)
     
    @@ -854,6 +853,11 @@ Turn off auto-fill mode that add line breaks.

    (auto-fill-mode -1)
    +(remove-hook 'text-mode-hook 'turn-on-auto-fill)
    +;; turn on auto-fill for text-mode
    +(add-hook 'text-mode-hook 'turn-on-auto-fill)
    +;; turn off auto-fill for org-mode
    +(add-hook 'org-mode-hook 'turn-off-auto-fill)
     
    @@ -878,6 +882,22 @@ Turn off auto-fill mode that add line breaks.
    + +
    +

    Disable highlight of current line

    +
    +
    +
    (global-hl-line-mode -1)
    +(add-hook 'org-mode-hook
    +(lambda()
    +    (hl-line-mode -1)
    +    (global-hl-line-mode -1))
    +'t
    +)
    +
    +
    +
    +
    @@ -892,9 +912,9 @@ Turn off auto-fill mode that add line breaks.
    -
    -

    Org Mode

    -
    +
    +

    Org Mode

    +
    • http://cachestocaches.com/2016/9/my-workflow-org-agenda/
    • http://doc.norang.ca/org-mode.html#TodoKeywords
    • @@ -948,91 +968,95 @@ TAB was changed to toggle only the visibility state of the current subtree, rath

      Org latex fragment

      +

      +Don’t change the font size for subscripts and superscripts in latex fragments. +This cause the orgmode tables not to be well aligned. +

      -
      (setq org-highlight-latex-and-related '(native))
      +
      (setq font-latex-fontify-script nil)
       
      -
        (defvar tdh/org-latex-fragment-last nil
      -    "Holds last fragment/environment you were on.")
      +
      (defvar tdh/org-latex-fragment-last nil
      +  "Holds last fragment/environment you were on.")
       
      -  (defun tdh/org-in-latex-fragment-p ()
      -    "Return the point where the latex fragment begins, if inside
      -  a latex fragment. Else return false"
      -    (let* ((el (org-element-context))
      -           (el-type (car el)))
      -      (and (or (eq 'latex-fragment el-type) (eq 'latex-environment el-type))
      -          (org-element-property :begin el))))
      +(defun tdh/org-in-latex-fragment-p ()
      +  "Return the point where the latex fragment begins, if inside
      +a latex fragment. Else return false"
      +  (let* ((el (org-element-context))
      +         (el-type (car el)))
      +    (and (or (eq 'latex-fragment el-type) (eq 'latex-environment el-type))
      +        (org-element-property :begin el))))
       
      -  (defun tdh/org-latex-fragment-toggle ()
      -    "Toggle a latex fragment image "
      -    (and (eq 'org-mode major-mode)
      -   (let ((begin (tdh/org-in-latex-fragment-p)))
      -           (cond
      -            ;; were on a fragment and now on a new fragment
      -            ((and
      -              ;; fragment we were on
      -              tdh/org-latex-fragment-last
      -              ;; and are on a fragment now
      -              begin
      +(defun tdh/org-latex-fragment-toggle ()
      +  "Toggle a latex fragment image "
      +  (and (eq 'org-mode major-mode)
      + (let ((begin (tdh/org-in-latex-fragment-p)))
      +         (cond
      +          ;; were on a fragment and now on a new fragment
      +          ((and
      +            ;; fragment we were on
      +            tdh/org-latex-fragment-last
      +            ;; and are on a fragment now
      +            begin
       
      -              ;; but not on the last one this is a little tricky. as you edit the
      -              ;; fragment, it is not equal to the last one. We use the begin
      -              ;; property which is less likely to change for the comparison.
      -              (not (and tdh/org-latex-fragment-last
      -      (= begin
      -         tdh/org-latex-fragment-last))))
      -             ;; go back to last one and put image back, provided there is still a fragment there
      -             (save-excursion
      -               (goto-char tdh/org-latex-fragment-last)
      -               (when (tdh/org-in-latex-fragment-p) (org-preview-latex-fragment))
      +            ;; but not on the last one this is a little tricky. as you edit the
      +            ;; fragment, it is not equal to the last one. We use the begin
      +            ;; property which is less likely to change for the comparison.
      +            (not (and tdh/org-latex-fragment-last
      +    (= begin
      +       tdh/org-latex-fragment-last))))
      +           ;; go back to last one and put image back, provided there is still a fragment there
      +           (save-excursion
      +             (goto-char tdh/org-latex-fragment-last)
      +             (when (tdh/org-in-latex-fragment-p) (org-preview-latex-fragment))
       
      -               ;; now remove current image
      -               (goto-char begin)
      -               (let ((ov (loop for ov in (org--list-latex-overlays)
      -                               if
      -                               (and
      -r       (<= (overlay-start ov) (point))
      -        (>= (overlay-end ov) (point)))
      -                               return ov)))
      -     (when ov
      -                   (delete-overlay ov)))
      -               ;; and save new fragment
      -               (setq tdh/org-latex-fragment-last begin)))
      +             ;; now remove current image
      +             (goto-char begin)
      +             (let ((ov (loop for ov in (org--list-latex-overlays)
      +                             if
      +                             (and
      +      (<= (overlay-start ov) (point))
      +      (>= (overlay-end ov) (point)))
      +                             return ov)))
      +   (when ov
      +                 (delete-overlay ov)))
      +             ;; and save new fragment
      +             (setq tdh/org-latex-fragment-last begin)))
       
      -            ;; were on a fragment and now are not on a fragment
      -            ((and
      -              ;; not on a fragment now
      -              (not begin)
      -              ;; but we were on one
      -              tdh/org-latex-fragment-last)
      -             ;; put image back on, provided that there is still a fragment here.
      -             (save-excursion
      -               (goto-char tdh/org-latex-fragment-last)
      -               (when (tdh/org-in-latex-fragment-p) (org-preview-latex-fragment)))
      +          ;; were on a fragment and now are not on a fragment
      +          ((and
      +            ;; not on a fragment now
      +            (not begin)
      +            ;; but we were on one
      +            tdh/org-latex-fragment-last)
      +           ;; put image back on, provided that there is still a fragment here.
      +           (save-excursion
      +             (goto-char tdh/org-latex-fragment-last)
      +             (when (tdh/org-in-latex-fragment-p) (org-preview-latex-fragment)))
       
      -             ;; unset last fragment
      -             (setq tdh/org-latex-fragment-last nil))
      +           ;; unset last fragment
      +           (setq tdh/org-latex-fragment-last nil))
       
      -            ;; were not on a fragment, and now are
      -            ((and
      -              ;; we were not one one
      -              (not tdh/org-latex-fragment-last)
      -              ;; but now we are
      -              begin)
      -             ;; remove image
      -             (save-excursion
      -               (goto-char begin)
      -               (let ((ov (loop for ov in (org--list-latex-overlays)
      -                               if
      -                               (and
      -        (<= (overlay-start ov) (point))
      -        (>= (overlay-end ov) (point)))
      -                               return ov)))
      -     (when ov
      -                   (delete-overlay ov))))
      -             (setq tdh/org-latex-fragment-last begin))))))
      +          ;; were not on a fragment, and now are
      +          ((and
      +            ;; we were not one one
      +            (not tdh/org-latex-fragment-last)
      +            ;; but now we are
      +            begin)
      +           ;; remove image
      +           (save-excursion
      +             (goto-char begin)
      +             (let ((ov (loop for ov in (org--list-latex-overlays)
      +                             if
      +                             (and
      +      (<= (overlay-start ov) (point))
      +      (>= (overlay-end ov) (point)))
      +                             return ov)))
      +   (when ov
      +                 (delete-overlay ov))))
      +           (setq tdh/org-latex-fragment-last begin))))))
       
      @@ -1053,7 +1077,7 @@ r (
      ;; Align Tags and flush right
      -(setq org-tags-column -80)
      +(setq org-tags-column -78)
       ;; Tags with fast selection keys
       (setq org-tag-alist (quote (("@home" . ?h)
                                   ("@work" . ?w)
      @@ -1400,9 +1424,9 @@ Documentation:
       

      Org Export

      -
      -

      Basic

      -
      +
      +

      Basic

      +
      ;; How many levels of headline to export
       (setq org-export-headline-levels 4)
      @@ -1601,9 +1625,9 @@ Documentation:
       
      -
      -

      Basic

      -
      +
      +

      Basic

      +
      ;; Add packages by default
       (add-to-list 'org-latex-packages-alist '("" "siunitx" t))
      @@ -1700,37 +1724,36 @@ Special Environments
       
         ;; Define backends to preview LaTeX fragments
         (setq org-preview-latex-process-alist '((imagemagick
      -                                           :programs ("latex" "convert")
      +                                           :programs ("pdflatex" "convert")
                                                  :description "pdf > png"
      -                                           :message "you need to install the programs: latex and imagemagick."
      +                                           :message "you need to install the programs: pdflatex and imagemagick."
                                                  :image-input-type "pdf"
                                                  :image-output-type "png"
                                                  :image-size-adjust (0.6 . 0.6)
                                                  :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f")
                                                  :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))
      -                                          (pdf2svg
      -                                           :programs ("latex" "pdf2svg")
      -                                           :description "pdf > svg"
      -                                           :message "you need to install the programs: pdflatex and pdf2svg."
      -                                           :image-input-type "pdf"
      -                                           :image-output-type "svg"
      -                                           :image-size-adjust (1.0 . 1.0)
      -                                           :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f")
      -                                           :image-converter ("pdfcrop %f %f && pdftocairo -svg %f %O"))
      -                                           ;; :image-converter ("pdf2svg %f %O"))
      +                                          (dvipng
      +                                           :programs ("latex" "dvipng")
      +                                           :description "dvi > png"
      +                                           :message "you need to install the programs: latex and dvipng."
      +                                           :image-input-type "dvi"
      +                                           :image-output-type "png"
      +                                           :image-size-adjust (0.5 . 0.5)
      +                                           :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f")
      +                                           :image-converter ("dvipng -D %D -T tight -o %O %f"))
                                                 (dvisvgm
      -                                           :programs ("latex" "dvisvgm")
      +                                           :programs ("pdflatex" "dvisvgm")
                                                  :description "dvi > svg"
                                                  :message "you need to install the programs: latex and dvisvgm."
                                                  :image-input-type "dvi"
                                                  :image-output-type "svg"
      -                                           :image-size-adjust (0.8 . 0.8)
      +                                           :image-size-adjust (0.7 . 0.7)
                                                  :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f")
                                                  :image-converter ("dvisvgm %f -n -b min -c %S -o %O"))
                                                 ))
       
         ;; Use imagemagick/dvisvgm to generate png from pdf
      -  (setq org-preview-latex-default-process 'dvisvgm)
      +  (setq org-preview-latex-default-process 'dvipng)
       
      @@ -1744,9 +1767,9 @@ Special Environments

      -
      (defcustom tdehaeze/org-property-mapping
      -  '((latex ("CUSTOM_PAGE" . tdehaeze/insert-org-page-latex)
      -           ("CUSTOM_LABEL" . tdehaeze/insert-org-label-latex)))
      +
      (defcustom tdh/org-property-mapping
      +  '((latex ("CUSTOM_PAGE" . tdh/insert-org-page-latex)
      +           ("CUSTOM_LABEL" . tdh/insert-org-label-latex)))
         "List of mappings from org property to arbitrary strings.
       Each element is a list:
         (BACKEND (PROPERTY1 . FUNCTION1) (PROPERTY2 . FUNCTION2) ...)
      @@ -1758,13 +1781,13 @@ Special Environments
       
      -
      (defun tdehaeze/replace-org-property (backend)
      -  "Convert org properties using `tdehaeze/org-property-mapping'.
      -Lookup BACKEND in `tdehaeze/org-property-mapping' for a list of
      +
      (defun tdh/replace-org-property (backend)
      +  "Convert org properties using `tdh/org-property-mapping'.
      +Lookup BACKEND in `tdh/org-property-mapping' for a list of
       (PROPERTY REPLACEMENT). For each healine being exported, if it has a
       PROPERTY listed insert a string immediately after the healine given by
           (format REPLACEMENT PROPERTY-VALUE)"
      -  (let ((map (cdr (assoc backend tdehaeze/org-property-mapping)))
      +  (let ((map (cdr (assoc backend tdh/org-property-mapping)))
               value replacement)
           (when map
             (org-map-entries
      @@ -1774,17 +1797,17 @@ Special Environments
                    (when (setq value (org-entry-get (point) (car it)))
                      (funcall (cdr it) value)))))))))
       
      -(add-hook 'org-export-before-processing-hook #'tdehaeze/replace-org-property)
      +(add-hook 'org-export-before-processing-hook #'tdh/replace-org-property)
       
      -
      (defun tdehaeze/insert-org-label-latex (label)
      +
      (defun tdh/insert-org-label-latex (label)
         "Insert \"\\\\label{LABEL}\\n\" after the :PROPERTY: drawer."
         (search-forward-regexp org-property-end-re)
         (forward-char 1)
         (insert (format "\\label{%s}\n" label)))
      -(defun tdehaeze/insert-org-page-latex (page)
      +(defun tdh/insert-org-page-latex (page)
         "Insert \"\\\\page{PAGE}\\n\" after the :PROPERTY: drawer."
         (search-forward-regexp org-property-end-re)
         (forward-char 1)
      @@ -2052,28 +2075,33 @@ Ressources:
       
    -
    ;; Folder where the notes files are located (or file if just one Note file)
    -(setq org-ref-notes-directory "~/Cloud/thesis/ressources/notes")
    -(setq org-ref-bibliography-notes "~/Cloud/thesis/ressources/notes")
    +
    (use-package! org-ref
    +    :after org
    +    :config
    +      ;; Folder where the notes files are located (or file if just one Note file)
    +      (setq org-ref-notes-directory "~/Cloud/thesis/ressources/notes")
    +      (setq org-ref-bibliography-notes "~/Cloud/thesis/ressources/notes")
     
    -;; Bibliography File
    -(setq reftex-default-bibliography  '("~/Cloud/thesis/ressources/references.bib"))
    -(setq org-ref-default-bibliography '("~/Cloud/thesis/ressources/references.bib"))
    +      ;; Bibliography File
    +      (setq reftex-default-bibliography  '("~/Cloud/thesis/ressources/references.bib"))
    +      (setq org-ref-default-bibliography '("~/Cloud/thesis/ressources/references.bib"))
     
    -;; Folder where all the pdf are located
    -(setq org-ref-pdf-directory "~/Cloud/thesis/ressources/pdfs")
    +      ;; Folder where all the pdf are located
    +      (setq org-ref-pdf-directory "~/Cloud/thesis/ressources/pdfs")
     
    -;; Tell org-ref to let helm-bibtex find notes for it
    -(setq org-ref-notes-function
    -   (lambda (thekey)
    -     (let ((bibtex-completion-bibliography (org-ref-find-bibliography)))
    -       (bibtex-completion-edit-notes
    -        (list (car (org-ref-get-bibtex-key-and-file thekey)))))))
    +      ;; Tell org-ref to let helm-bibtex find notes for it
    +      (setq org-ref-notes-function
    +          (lambda (thekey)
    +          (let ((bibtex-completion-bibliography (org-ref-find-bibliography)))
    +              (bibtex-completion-edit-notes
    +              (list (car (org-ref-get-bibtex-key-and-file thekey)))))))
     
    -;; Problem with speed: don't display broken links
    -(setq org-ref-show-broken-links nil)
    -;; Display information on the citation
    -(setq org-ref-show-citation-on-enter t)
    +      ;; Problem with speed: don't display broken links
    +      (setq org-ref-show-broken-links t)
    +      ;; Display information on the citation
    +      (setq org-ref-show-citation-on-enter t)
    +      (bibtex-set-dialect 'BibTeX)
    +    )
     
    @@ -2403,6 +2431,22 @@ when inside a source block. Otherwise, keep the normal behavior for ctrl-ent. Remap C-c C-c: https://emacs.stackexchange.com/questions/22430/rebind-org-babel-execute-src-block-maybe-to-c-c-c-c/22530#22530

    + +
    +
    (defun tdh/ctrl-shit-ret ()
    +  (interactive)
    +  (defun in-src-block-p ()
    +    "Returns t when the point is inside a source code block"
    +    (string= "src" (org-in-block-p '("src"))))
    +
    +  (if (in-src-block-p)
    +      (tdh/org-babel-execute-goto-next)
    +    (+org/insert-item-above)))
    +
    + (map! :map evil-org-mode-map
    +       :n "<C-S-return>" #'tdh/ctrl-shit-ret)
    +
    +
    @@ -2414,7 +2458,9 @@ Add all named source blocks to org-babel-library-of-babel.

    -
    (org-babel-lob-ingest "~/Cloud/thesis/org-mode/org-babel-tutorial/org-babel-library.org")
    +
    (after! org-babel
    +  (org-babel-lob-ingest "~/Cloud/thesis/org-mode/org-babel-tutorial/org-babel-library.org")
    +  )
     
    @@ -2732,9 +2778,9 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign -
    -

    LaTeX

    -
    + -
    -

    Helm-Bibtex

    -
    +
    +

    Helm-Bibtex

    +

    General Config

    ;; Use "tags" field when looking for bib entries
    -(setq helm-bibtex-additional-search-fields '(keywords))
    +(setq helm-bibtex-additional-search-fields '(tags))
     
     ;; Display of bibtex entries with helm
    -(setq bibtex-completion-display-formats
    +(setq bibtex-completion-display-formats
           '((t . "${author:36} ${title:*} ${year:4} ${=type=:7} ${=has-note=:1}")))
     
     ;; Special symbols for notes and pdf
    -(setq bibtex-completion-pdf-symbol "⌘")
    -(setq bibtex-completion-notes-symbol "✎")
    +(setq bibtex-completion-pdf-symbol "⌘")
    +(setq bibtex-completion-notes-symbol "✎")
     
     ;; Bibliography file
    -(setq bibtex-completion-bibliography "~/Cloud/thesis/ressources/references.bib")
    +(setq bibtex-completion-bibliography "~/Cloud/thesis/ressources/references.bib")
     
     ;; Directory with all the pdfs
    -(setq bibtex-completion-library-path "~/Cloud/thesis/ressources/pdfs")
    +(setq bibtex-completion-library-path "~/Cloud/thesis/ressources/pdfs")
     
     ;; Directory with notes files
    -(setq bibtex-completion-notes-path "~/Cloud/thesis/ressources/notes")
    +(setq bibtex-completion-notes-path "~/Cloud/thesis/ressources/notes")
     
     ;; Template used when creating new Note file
    -(setq bibtex-completion-notes-template-multiple-files (concat "#+TITLE: ${title}\n"
    +(setq bibtex-completion-notes-template-multiple-files (concat "#+TITLE: ${title}\n"
                                                                   ":DRAWER:\n"
                                                                   "#+LATEX_CLASS: biblioreport\n"
                                                                   "\n"
    @@ -2833,7 +2879,7 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
                                                                   "#+LATEX_HEADER: \\newcommand{\\refYear}{${year}}\n"
                                                                   "#+LATEX_HEADER: \\newcommand{\\refDoi}{${DOI}}\n"
                                                                   "#+LATEX_HEADER: \\newcommand{\\refUrl}{${url}}\n"
    -                                                              "#+LATEX_HEADER: \\newcommand{\\refKeywords}{${keywords}}\n"
    +                                                              "#+LATEX_HEADER: \\newcommand{\\refKeywords}{${tags}}\n"
                                                                   "#+LATEX_HEADER: \\input{config.tex}\n"
                                                                   "#+LATEX_HEADER: \\graphicspath{{./figs/${=key=}/}}\n"
                                                                   "# #+TOC: headlines 2\n"
    @@ -2860,9 +2906,8 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
     
     ;; Make "Edit notes" the default action
     (after! helm-bibtex
    -  (helm-delete-action-from-source "Edit notes" helm-source-bibtex)
    -  (helm-add-action-to-source "Edit notes" 'helm-bibtex-edit-notes helm-source-bibtex 0)
    -)
    +  (helm-delete-action-from-source "Edit notes" helm-source-bibtex)
    +  (helm-add-action-to-source "Edit notes" 'helm-bibtex-edit-notes helm-source-bibtex 0))
     
    @@ -2873,13 +2918,12 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
    (defun tdehaeze/open-pdf-externally (key)
    -  (call-process "zathura" nil 0 nil (nth 0 (-cons-to-list (bibtex-completion-find-pdf key)))))
    +  (call-process "zathura" nil 0 nil (nth 0 (-cons-to-list (bibtex-completion-find-pdf key)))))
     
     ;; Action to open the pdf with Zathura
     (after! helm-bibtex
    -  (helm-delete-action-from-source "Open PDF Externally" helm-source-bibtex)
    -  (helm-add-action-to-source "Open PDF Externally" 'tdehaeze/open-pdf-externally helm-source-bibtex 1)
    -)
    +  (helm-delete-action-from-source "Open PDF Externally" helm-source-bibtex)
    +  (helm-add-action-to-source "Open PDF Externally" 'tdehaeze/open-pdf-externally helm-source-bibtex 1))
     
    @@ -2904,11 +2948,11 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
    (defun list-bib-without-pdf-associated ()
       (interactive)
    -  (bibtex-completion-init)
    -  (setq candidates (bibtex-completion-candidates))
    +  (bibtex-completion-init)
    +  (setq candidates (bibtex-completion-candidates))
     
       (defun canditate-is-pdf-present (candidate)
    -    (bibtex-completion-find-pdf-in-library (cdr (assoc "=key=" candidate)))
    +    (bibtex-completion-find-pdf-in-library (cdr (assoc "=key=" candidate)))
         )
     
       (setq candidates-without-pdf (remove-if #'canditate-is-pdf-present candidates))
    @@ -2926,9 +2970,9 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
     
    -
    -

    TODO Matlab

    -
    +
    +

    TODO Matlab

    +
    @@ -3025,7 +3069,7 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
    -
    (map! :map matlab-mode-map
    +
    (map! :map matlab-mode-map
           :n ",g" 'matlab-go-to-file-directory
           :n ",da" 'matlab-add-breakpoint
           :n ",dr" 'matlab-remove-breakpoint
    @@ -3044,7 +3088,7 @@ Actually this tangle the file and then go to the file. Maybe I would like to ign
     

    Wrong highlight of comments

    -
    (add-hook 'matlab-mode-hook
    +
    (add-hook 'matlab-mode-hook
             ;; `highlight-numbers-mode' breaks MATLAB comment coloring --
             ;; `highlight-numbers-mode' is mostly redundant with
             ;; `rainbow-identifiers-mode' anyway
    @@ -3453,9 +3497,9 @@ Check here.
     
    -
    -

    Helm-Bibtex

    -
    +
    +

    Helm-Bibtex

    +
    (map! :map org-mode-map
           :n ",ob" 'helm-bibtex
    @@ -3485,12 +3529,12 @@ Check here.
     

    Open ranger in current directory

    -
    (defun open-ranger-in-workdir ()
    +
    (defun tdh/open-ranger-in-workdir ()
       (interactive)
       (call-process-shell-command
       (concat "termite --directory=" default-directory " --exec=ranger") nil 0))
     
    -(map! :map org-mode-map :n ",oo" 'open-ranger-in-workdir)
    +(map! :map org-mode-map :n ",oo" 'tdh/open-ranger-in-workdir)
     
    @@ -3508,17 +3552,6 @@ Check here.
    -
    -

    Path for Shell

    -
    -
    -
    ;; (when (memq window-system '(mac ns x))
    -;;   (exec-path-from-shell-initialize))
    -
    -
    -
    -
    -

    Proxy

    @@ -3658,7 +3691,6 @@ they are implemented. :ui doom ; what makes DOOM look the way it does - doom-dashboard ; a nifty splash screen for Emacs hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hydra modeline ; snazzy, Atom-inspired modeline, plus API @@ -3691,17 +3723,13 @@ they are implemented. :tools debugger ; FIXME stepping through code, to help you add bugs - ;;ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) (lookup ; helps you navigate your code and documentation +docsets) ; ...or in Dash docsets locally ;;lsp magit ; a git porcelain for Emacs - ;;make ; run make tasks from Emacs ;;pass ; password manager for nerds pdf ; pdf enhancements - ;;rgb ; creating color strings - ;;upload ; map local to remote projects via ssh/ftp :checkers syntax ; tasing you for every semicolon you forget @@ -3710,21 +3738,15 @@ they are implemented. :lang data ; config/data formats emacs-lisp ; drown in parentheses - ;;ess ; emacs speaks statistics - ;;go ; the hipster dialect - ;;(haskell +dante) ; a language that's lazier than I am - ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) latex ; writing papers in Emacs has never been so fun markdown ; writing docs for people to ignore (org ; organize your plain life in plain text +dragndrop ; drag & drop files/images into org buffers +hugo ; use Emacs for hugo blogging +journal ; - ;;+pomodoro ; be fruitful with the tomato technique +present) ; using org-mode for presentations ;;python ; beautiful is better than ugly sh ; she sells {ba,z,fi}sh shells on the C xor - ;;web ; the tubes :email ;;(mu4e +gmail) @@ -3764,9 +3786,9 @@ they are implemented.

    Snippets

    -
    -

    LaTeX

    -
    +
    +

    LaTeX

    +

    Coordinate

    @@ -3825,9 +3847,9 @@ $0
    -
    -

    Matlab

    -
    +
    +

    Matlab

    +

    Clear

    @@ -3885,9 +3907,9 @@ if exist('opts_param','
    -
    -

    Org Mode

    -
    +
    +

    Org Mode

    +

    Begin

    @@ -4488,7 +4510,7 @@ $0

    Author: Dehaeze Thomas

    -

    Created: 2020-01-12 dim. 00:18

    +

    Created: 2020-01-28 mar. 21:32

    diff --git a/docs/index.html b/docs/index.html index 0624a3c..68ce24b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Dotfiles - Manjaro Linux @@ -261,18 +261,18 @@ for the JavaScript code in this tag.
  • Links to literate configs
  • Package Manager: yay
  • Git Setup
  • -
    -

    Installation

    -
    +
    +

    Installation

    +
    sudo pacman -S yay
     
    @@ -887,9 +889,9 @@ Others:
    -
    -

    CheatSheet

    -
    +
    +

    CheatSheet

    +
    @@ -953,9 +955,9 @@ To check all installed packages:

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S git
     
    @@ -963,9 +965,9 @@ To check all installed packages:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    Git Configuration:

    @@ -983,9 +985,9 @@ To check all installed packages: https://github.com/so-fancy/diff-so-fancy

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S diff-so-fancy
     
    @@ -993,9 +995,9 @@ To check all installed packages:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +
    git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
     
    @@ -1025,9 +1027,9 @@ This is explained in a further part: Integration of Pass w

    Termite

    -
    @@ -1119,9 +1121,9 @@ This is explained in a further part: Integration of Pass w

    Unicode Rxvt

    -
    @@ -1272,11 +1274,25 @@ Most of Urxvt configuration is done in ~/.Xresources

    Fonts

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    -
    yay -S ttf-inconsolata nerd-fonts-complete ttf-linux-libertine ttf-emojione
    +
    yay -S nerd-fonts-complete
    +
    +
    + +

    +or just +

    +
    +
    yay -S nerd-fonts-hack
    +
    +
    + + +
    +
    yay -S ttf-inconsolata ttf-linux-libertine ttf-emojione
     
    @@ -1323,9 +1339,9 @@ List all fonts available: fc-list

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S neovim
     
    @@ -1333,9 +1349,9 @@ List all fonts available: fc-list
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    Vim configuration

    @@ -1351,9 +1367,9 @@ List all fonts available: fc-list

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S emacs
     
    @@ -1361,9 +1377,9 @@ List all fonts available: fc-list
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    Doom Emacs configuration

    @@ -1467,11 +1483,18 @@ default-cache-ttl 60480000

    https://github.com/DaveDavenport/rofi

    + +

    +Alternative: +

    +
      +
    • dmenu is sometimes used
    • +
    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S rofi
     
    @@ -1558,9 +1581,9 @@ pass git remote add origin https://github.com/tdeh
    -
    -

    Gui Manager

    -
    +
    +

    Gui Manager

    +

    https://github.com/IJHack/qtpass

    @@ -1572,17 +1595,17 @@ pass git remote add origin https://github.com/tdeh
    -
    -

    Integration with Rofi

    -
    +
    +

    Integration with Rofi

    + -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S rofi-pass
     
    @@ -1625,9 +1648,9 @@ This is explained here. https://github.com/languitar/pass-git-helper

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S pass-git-helper
     
    @@ -1635,9 +1658,9 @@ This is explained here.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    First, add the relation between repository addresses and entries in pass. This is done in the following config file .config/pass-git-helper/git-pass-mapping.ini:

    @@ -1678,6 +1701,19 @@ Integrate pass in other programs is usually very easy, here are few examples:
    + +
    +

    Alternative - Bitwarden

    +
    +

    +Bitwarden https://github.com/bitwarden/cli +

    +
    +
    yay -Ss bitwarden-bin bitwarden-cli-bin
    +
    +
    +
    +
    @@ -1688,9 +1724,9 @@ Integrate pass in other programs is usually very easy, here are few examples:

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S buku
     
    @@ -1698,17 +1734,17 @@ Integrate pass in other programs is usually very easy, here are few examples:
    -
    -

    Integration with Rofi

    -
    +
    +

    Integration with Rofi

    + -
    -

    Installation

    -
    +
    +

    Installation

    +
    wget https://raw.githubusercontent.com/carnager/buku_run/master/buku_run -o ~/bin/buku_run
     chmod +x ~/bin/buku_run
    @@ -1717,9 +1753,9 @@ Integrate pass in other programs is usually very easy, here are few examples:
     
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    The configuration file is here: ~/.config/buku_run/config

    @@ -1797,9 +1833,9 @@ And then browse to http://127.0.0.1:5001.
    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +
    @@ -1863,9 +1899,9 @@ And then browse to http://127.0.0.1:5001.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S qutebrowser
     
    @@ -1877,9 +1913,9 @@ And then browse to http://127.0.0.1:5001.

    View Pdf inside qutebrowser with pdfjs

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S pdfjs
     
    @@ -1887,9 +1923,9 @@ And then browse to http://127.0.0.1:5001.
    -
    -

    Usage

    -
    +
    +

    Usage

    +

    When opening a pdf file on qutebrowser, you’ll be ask for options:

    @@ -2043,9 +2079,9 @@ If sound is not working, should run pulseaudio --kill to kill the d

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S mpd
     
    @@ -2114,7 +2150,7 @@ To install mpc: yay -S mpc.

    -
    yay -S mopidy mopidy-spotify
    +
    yay -S mopidy mopidy-spotify mopidy-mpd
     
    @@ -2140,9 +2176,9 @@ If mopidy is used, MPD should be disabled. (systemctl disable --user mpd.s

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S ncmpcpp
     
    @@ -2160,9 +2196,9 @@ The key bindings can be configured here: ~/.ncmpcpp/bindings.
    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +

    https://pkgbuild.com/~jelle/ncmpcpp/

    @@ -2193,9 +2229,9 @@ The key bindings can be configured here: ~/.ncmpcpp/bindings.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S beets
     
    @@ -2203,18 +2239,18 @@ The key bindings can be configured here: ~/.ncmpcpp/bindings.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    Configuration folder: ~/.config/beets/

    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +
    @@ -2249,9 +2285,9 @@ Configuration folder: ~/.config/beets/

    Media Player - MPV

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S mpv
     
    @@ -2268,9 +2304,9 @@ The configuration is set in /.config/mpv/input.conf.
    -
    -

    CheatSheet

    -
    +
    +

    CheatSheet

    +
    @@ -2298,9 +2334,9 @@ The configuration is set in /.config/mpv/input.conf.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S catt
     
    @@ -2517,9 +2553,9 @@ This looks for contacts in all indexed emails.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S weechat
     
    @@ -2630,9 +2666,9 @@ Then we install some dependencies
    -
    -

    Configuration

    -
    + -
    -

    CheatSheet

    -
    +
    +

    CheatSheet

    +
    @@ -2737,9 +2773,9 @@ Then, on weechat, type /edit.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S python2-websocket-client
     
    @@ -2855,9 +2891,9 @@ It runs weechat inside tmux.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S isync
     
    @@ -2865,9 +2901,9 @@ It runs weechat inside tmux.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.mbsyncrc

    @@ -2921,9 +2957,9 @@ systemctl --user start syncmail.timer

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S msmtp
     
    @@ -2949,9 +2985,9 @@ systemctl --user start syncmail.timer

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S neomutt
     
    @@ -2988,9 +3024,9 @@ systemctl --user start syncmail.timer
    -
    -

    Ressources

    -
    +
    +

    Ressources

    + -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S ranger
     
    @@ -3039,9 +3075,9 @@ Configuration files:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    The configuration file is ~/.config/ranger/rc.conf.

    @@ -3089,9 +3125,9 @@ It works better with Urxvt.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S sxiv
     
    @@ -3109,9 +3145,9 @@ It works better with Urxvt.
    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +
    @@ -3185,9 +3221,9 @@ Configuration file: SXHKD.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S i3-gaps
     
    @@ -3195,9 +3231,9 @@ Configuration file: SXHKD.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.i3/config

    @@ -3217,9 +3253,9 @@ Configuration file: SXHKD.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S polybar
     
    @@ -3240,9 +3276,9 @@ Configuration file: SXHKD.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S picom
     
    @@ -3250,9 +3286,9 @@ Configuration file: SXHKD.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/picom/picom.conf

    @@ -3282,9 +3318,9 @@ Compton is run from .xprofile config in the background:

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S dunst dunstify
     
    @@ -3292,18 +3328,18 @@ Compton is run from .xprofile config in the background:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/dunst/dunstrc

    -
    @@ -3752,9 +3788,9 @@ In order for LaTeX to be aware of new packages/classes, run sudo texhash -
    @@ -4048,9 +4084,9 @@ To check the status of the service:

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S khal
     
    @@ -4107,9 +4143,9 @@ On the phone:

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S newboat
     
    @@ -4117,9 +4153,9 @@ On the phone:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    https://newsboat.org/releases/2.12/docs/newsboat.html ~/.newsboat/ @@ -4127,9 +4163,9 @@ On the phone:

    -
    -

    CheatSheet

    -
    +
    +

    CheatSheet

    +
    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S wunderline
     
    @@ -4164,9 +4200,9 @@ On the phone:
    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +

    Add a task with:

    @@ -4226,9 +4262,9 @@ Other commands:

    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/nitrogen/nitrogen.cfg

    @@ -4252,9 +4288,9 @@ Other commands: https://pwmt.org/projects/zathura/

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S zathura
     
    @@ -4274,18 +4310,18 @@ It seems that mupdf is better that poppler to view pdf.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/zathura/zathurarc

    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +
    @@ -4388,9 +4424,9 @@ pdfpc is a great tool for showing pdf presentations. It support: -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S pdfpc
     
    @@ -4408,9 +4444,9 @@ pdfpc is a great tool for showing pdf presentations. It support:
    -
    -

    Usage

    -
    +
    +

    Usage

    +
    pdfpc filename.pdf
     
    @@ -4549,9 +4585,9 @@ This help changes many applications colors at once.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S nordvpn-bin
     
    @@ -4559,9 +4595,9 @@ This help changes many applications colors at once.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +
    sudo systemctl enable nordvpnd.service
     sudo systemctl start nordvpnd.service
    @@ -4570,9 +4606,9 @@ This help changes many applications colors at once.
     
    -
    -

    Usage

    -
    +
    +

    Usage

    +
    @@ -4629,9 +4665,9 @@ This help changes many applications colors at once. -
    -

    Others

    -
    +
    +

    Others

    +

    Reddit on terminal: rtv

    @@ -4685,9 +4721,19 @@ This help changes many applications colors at once.
    -
    +
    +

    Trash

    +
    +

    +trash-cli is used to manage the trash. +It is integrated with Ranger. +

    +
    +
    + +

    Usefull commands

    @@ -4987,9 +5033,9 @@ Will create split1.pdf to split6.pdf files correspondi
    -
    -

    Others

    -
    +
    +

    Others

    +
    @@ -5260,9 +5306,9 @@ To improve the startup time. -
    -

    Ressources

    -
    +
    +

    Ressources

    +

    Dotfiles

    @@ -5296,7 +5342,7 @@ To improve the startup time.

    Author: Dehaeze Thomas

    -

    Created: 2020-01-12 dim. 17:40

    +

    Created: 2020-01-28 mar. 21:32

    diff --git a/docs/install.html b/docs/install.html index ce58537..8f48b00 100644 --- a/docs/install.html +++ b/docs/install.html @@ -4,7 +4,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Installation @@ -402,7 +402,7 @@ arduino-mk - Makefile for Arduino sketches
    - + @@ -571,7 +571,7 @@ moreutils - Collection of tools that nobody wrote when UNIX was young

    Author: Dehaeze Thomas

    -

    Created: 2020-01-12 dim. 17:39

    +

    Created: 2020-01-28 mar. 21:32

    diff --git a/docs/mail.html b/docs/mail.html index 97f9147..38bfb16 100644 --- a/docs/mail.html +++ b/docs/mail.html @@ -4,7 +4,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Mail Configuration @@ -261,17 +261,19 @@ for the JavaScript code in this tag.
  • Synchronize Mailboxes - Mbsync
  • Send Mails - Msmtp
  • @@ -286,11 +288,11 @@ for the JavaScript code in this tag.
    atoolatool zip script for managing file archives of various types