emacs/.emacs.d/config.org:
- Added yaml-mode - Added ledger-mode config/.ssh/config: - cleaup
This commit is contained in:
@@ -218,6 +218,28 @@
|
||||
(simpleclip-mode 1))
|
||||
#+end_src
|
||||
|
||||
*** [[https://github.com/ledger/ledger-mode][ledger-mode]]
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package ledger-mode
|
||||
:mode ("\\.ledger\\'")
|
||||
:config
|
||||
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
|
||||
(add-to-list 'load-path
|
||||
(expand-file-name "/path/to/ledger/source/lisp/"))
|
||||
(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))
|
||||
)
|
||||
#+END_SRC
|
||||
|
||||
*** [[https://github.com/yoshiki/yaml-mode][yaml-mode]]
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package yaml-mode
|
||||
:config
|
||||
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
|
||||
:bind-keymap
|
||||
("\C-m" . (newline-and-indent))
|
||||
)
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* Appearance
|
||||
This section is for appearance customization. Either via packages or manually.
|
||||
@@ -265,23 +287,37 @@
|
||||
(setq-default indent-tabs-mode nil)
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* Mode Configuration
|
||||
** Org-mode
|
||||
Enable org-bullets and hide leading stars.
|
||||
*** Enable org-bullets and hide leading stars.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'org-mode-hook
|
||||
(lambda ()
|
||||
(org-bullets-mode 1)
|
||||
(setq org-pretty-entities t)
|
||||
(setq org-src-fontify-natively t)))
|
||||
#+end_src
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'org-mode-hook
|
||||
(lambda ()
|
||||
(org-bullets-mode 1)
|
||||
(setq org-pretty-entities t)
|
||||
(setq org-src-fontify-natively t)))
|
||||
#+end_src
|
||||
|
||||
Enable utf8x on latex output
|
||||
*** Enable utf8x on latex output
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-latex-inputenc-alist '(("utf8" . "utf8x")))
|
||||
#+end_src
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-latex-inputenc-alist '(("utf8" . "utf8x")))
|
||||
#+end_src
|
||||
|
||||
*** minted options for pdfexport
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-latex-listings 'minted
|
||||
org-latex-packages-alist '(("" "minted"))
|
||||
org-latex-pdf-process
|
||||
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
|
||||
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
|
||||
#+end_src
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-latex-minted-options '(("breaklines" "true")
|
||||
("breakanywhere" "true")))
|
||||
#+end_src
|
||||
|
||||
*** Keybindings
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
(org-babel-load-file "~/.emacs.d/config.org")
|
||||
(put 'upcase-region 'disabled nil)
|
||||
(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.
|
||||
'(auth-source-save-behavior nil)
|
||||
'(org-export-backends '(ascii html latex md odt))
|
||||
'(package-selected-packages
|
||||
'(auctex-latexmk flycheck-rust ansible yasnippet use-package theme-magic rainbow-mode rainbow-delimiters ox-twbs ox-reveal ox-hugo org-bullets no-littering moe-theme magit ivy-prescient htmlize god-mode go-mode flycheck evil-collection diminish counsel company auctex)))
|
||||
(custom-set-faces
|
||||
|
||||
5
emacs/.emacs.d/snippets/org-mode/whitesquare
Normal file
5
emacs/.emacs.d/snippets/org-mode/whitesquare
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: whitesqure
|
||||
# key: \box{}
|
||||
# --
|
||||
□ $0
|
||||
5
emacs/.emacs.d/snippets/python-mode/logging-critical
Normal file
5
emacs/.emacs.d/snippets/python-mode/logging-critical
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: logging-critical
|
||||
# key: lcritical
|
||||
# --
|
||||
logging.critical(f'$0')
|
||||
5
emacs/.emacs.d/snippets/python-mode/logging-debug
Normal file
5
emacs/.emacs.d/snippets/python-mode/logging-debug
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: logging-debug
|
||||
# key: ldebug
|
||||
# --
|
||||
logging.debug(f'$0')
|
||||
5
emacs/.emacs.d/snippets/python-mode/logging-error
Normal file
5
emacs/.emacs.d/snippets/python-mode/logging-error
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: logging-error
|
||||
# key: lerror
|
||||
# --
|
||||
logging.error(f'$0')
|
||||
5
emacs/.emacs.d/snippets/python-mode/logging-info
Normal file
5
emacs/.emacs.d/snippets/python-mode/logging-info
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: logging-info
|
||||
# key: linfo
|
||||
# --
|
||||
logging.info(f'$0')
|
||||
5
emacs/.emacs.d/snippets/python-mode/logging-warning
Normal file
5
emacs/.emacs.d/snippets/python-mode/logging-warning
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: logging-warning
|
||||
# key: lwarning
|
||||
# --
|
||||
logging.warning(f'$0')
|
||||
Reference in New Issue
Block a user