Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
1d591520
Commit
1d591520
authored
10 months ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
Clean some parts
parent
ef236681
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+8
-48
8 additions, 48 deletions
configuration.org
with
8 additions
and
48 deletions
configuration.org
+
8
−
48
View file @
1d591520
...
...
@@ -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=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment