From efefbc80f235b8c6e57d0a8d6a9edcf53ece792f Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 24 May 2020 08:15:14 +0200 Subject: [PATCH] Enable direnv and fix language option in eisvogel --- +ui.el | 2 ++ config.el | 3 +- init.el | 29 ++++++++++---------- snippets/org-mode/eisvogel template metadata | 2 +- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/+ui.el b/+ui.el index fd9a634..fd1a34c 100644 --- a/+ui.el +++ b/+ui.el @@ -15,3 +15,5 @@ doom-modeline-persp-name t doom-modeline-buffer-encoding nil) (setq evil-command-window-height 3) +;; Hide direnv environment variables popup +(setq direnv-always-show-summary nil) diff --git a/config.el b/config.el index 895bd56..9b3e6f0 100644 --- a/config.el +++ b/config.el @@ -19,9 +19,9 @@ ;; Load org configuration (after! org (load! "+org")) ;; Enter writeroom and disable completion and line numbers in Markdown +(add-hook 'markdown-mode-hook (lambda () (display-line-numbers-mode -1))) (after! markdown (set-company-backend! 'markdown-mode nil) - (add-hook 'markdown-mode-hook (lambda () (display-line-numbers-mode -1))) (add-hook 'markdown-mode-hook 'global-writeroom-mode)) ;; Reload file from disk without confirmation (defun revert-buffer-no-confirm () @@ -42,7 +42,6 @@ (setq compilation-finish-functions (lambda (buf str) (if (null (string-match ".*exited abnormally.*" str)) - ;;no errors, make the compilation window go away in a few seconds (progn (run-at-time "0.5 sec" nil 'delete-windows-on diff --git a/init.el b/init.el index 6102d52..63a3cc1 100644 --- a/init.el +++ b/init.el @@ -81,8 +81,8 @@ ;;ansible biblio debugger ; FIXME stepping through code, to help you add bugs - ;;direnv - docker + direnv + ;;docker ;;editorconfig ; let someone else argue about tabs vs spaces ;;ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) @@ -122,6 +122,7 @@ ;;(haskell +dante) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; + json ; At least it ain't XML (java +meghanada) ; the poster child for carpal tunnel syndrome (javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) ;;julia ; a better, faster MATLAB @@ -131,36 +132,36 @@ ;;factor ;;ledger ; an accounting system in Emacs ;;lua ; one-based indices? one-based indices - markdown ; writing docs for people to ignore + markdown ; writing docs for people to ignore ;;nim ; python + lisp at the speed of c - nix ; I hereby declare "nix geht mehr!" + nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel - (org ; organize your plain life in plain text - ;;+dragndrop ; drag & drop files/images into org buffers + (org ; organize your plain life in plain text + +dragndrop ; drag & drop files/images into org buffers ;;+hugo ; use Emacs for hugo blogging ;;+ipython ; ipython/jupyter support for babel - +pandoc ; export-with-pandoc support + +pandoc ; export-with-pandoc support ;;+pomodoro ; be fruitful with the tomato technique - +present) ; using org-mode for presentations + +present) ; using org-mode for presentations ;;perl ; write code no one else can comprehend - php ; perl's insecure younger brother + (php +lsp) ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional (python +lsp) ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs - rest ; Emacs as a REST client + rest ; Emacs as a REST client ;;rst ; ReST in peace ;;ruby ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;scheme ; a fully conniving family of lisps - sh ; she sells {ba,z,fi}sh shells on the C xor + sh ; she sells {ba,z,fi}sh shells on the C xor ;;solidity ; do you need a blockchain? No. - swift ; who asked for emoji variables? + swift ; who asked for emoji variables? ;;terra ; Earth and Moon in alignment for performance. - web ; the tubes - yaml ; JSON, but readable + web ; the tubes + yaml ; JSON, but readable :email ;;(mu4e +gmail) diff --git a/snippets/org-mode/eisvogel template metadata b/snippets/org-mode/eisvogel template metadata index 467670b..fd65598 100644 --- a/snippets/org-mode/eisvogel template metadata +++ b/snippets/org-mode/eisvogel template metadata @@ -6,10 +6,10 @@ #+SUBTITLE: #+AUTHOR: Amin Kasrou Aouam #+DATE: `(format-time-string "%Y-%m-%d")` -#+LANGUAGE: es #+PANDOC_OPTIONS: template:~/.pandoc/templates/eisvogel.latex #+PANDOC_OPTIONS: listings:t #+PANDOC_OPTIONS: toc:t +#+PANDOC_METADATA: lang=es #+PANDOC_METADATA: titlepage:t #+PANDOC_METADATA: listings-no-page-break:t #+PANDOC_METADATA: toc-own-page:t