Fix buggy emacs TAB error
This commit is contained in:
@@ -319,10 +319,11 @@ Use =doom-modeline= as a bar... together with icons and nyan cat!
|
|||||||
(use-package nyan-mode
|
(use-package nyan-mode
|
||||||
:straight t
|
:straight t
|
||||||
:init
|
:init
|
||||||
;; (nyan-mode)
|
(nyan-mode)
|
||||||
;; (nyan-start-animation)
|
;; (nyan-start-animation)
|
||||||
:config
|
:config
|
||||||
(setq nyan-cat-face-number 4))
|
(setq nyan-cat-face-number 4
|
||||||
|
nyan-minimum-window-width 100))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Inline colors
|
*** Inline colors
|
||||||
@@ -474,14 +475,12 @@ Bootstrap =org-mode= together with keybindings.
|
|||||||
"odi" 'org-display-inline-images)
|
"odi" 'org-display-inline-images)
|
||||||
:hook
|
:hook
|
||||||
(org-mode . (lambda () (electric-indent-local-mode -1))) ;; dont make real spaces at the start of a line
|
(org-mode . (lambda () (electric-indent-local-mode -1))) ;; dont make real spaces at the start of a line
|
||||||
(org-mode . org-indent-mode) ;; add virtual spaces
|
(org-mode . org-indent-mode)) ;; add virtual spaces
|
||||||
:config
|
|
||||||
(define-key evil-normal-state-map (kbd "TAB") 'org-cycle)) ;; use TAB to FOLD in every evil-mode
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Misc
|
*** Misc
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-startup-with-inline-images t ;; start with inline images enabled
|
(setq org-startup-with-inline-images nil ;; start with inline images disabled
|
||||||
org-image-actual-width nil ;; rescale inline images
|
org-image-actual-width nil ;; rescale inline images
|
||||||
org-directory "~/org" ;; set org file directory
|
org-directory "~/org" ;; set org file directory
|
||||||
org-edit-src-content-indentation 0 ;; don't indent stupidly in org-edit-src-code
|
org-edit-src-content-indentation 0 ;; don't indent stupidly in org-edit-src-code
|
||||||
@@ -568,6 +567,14 @@ I need my =hjkl= :(
|
|||||||
(setq org-ref-completion-library 'org-ref-ivy-cite))
|
(setq org-ref-completion-library 'org-ref-ivy-cite))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** org-screenshot
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package org-attach-screenshot
|
||||||
|
:straight t
|
||||||
|
:config (setq org-attach-screenshot-command-line "gnome-screenshot -a -f %f"
|
||||||
|
org-attach-screenshot-auto-refresh "never"))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** LaTeX Export
|
*** LaTeX Export
|
||||||
Enable LaTeX export with =pdflatex= and use =minted= for code highlighting.
|
Enable LaTeX export with =pdflatex= and use =minted= for code highlighting.
|
||||||
Also fix math =utf8= chars.
|
Also fix math =utf8= chars.
|
||||||
@@ -703,7 +710,7 @@ Sometimes, a big red TODO is more intimidating than one with normal text color.
|
|||||||
'((t :background "#cc241d" :foreground "#ffffff"))
|
'((t :background "#cc241d" :foreground "#ffffff"))
|
||||||
"TODO Face")
|
"TODO Face")
|
||||||
(defface hl-todo-UNUSED
|
(defface hl-todo-UNUSED
|
||||||
'((t :background "#859900" :foreground "#ffffff"))
|
'((t :background "#B58900" :foreground "#ffffff"))
|
||||||
"TODO Face")
|
"TODO Face")
|
||||||
(setq hl-todo-highlight-punctuation ":"
|
(setq hl-todo-highlight-punctuation ":"
|
||||||
hl-todo-color-background t
|
hl-todo-color-background t
|
||||||
@@ -713,6 +720,13 @@ Sometimes, a big red TODO is more intimidating than one with normal text color.
|
|||||||
("UNUSED" . hl-todo-UNUSED))))
|
("UNUSED" . hl-todo-UNUSED))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** Code style
|
||||||
|
I want =bsd= style C.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq c-default-style "bsd"
|
||||||
|
c-basic-offset 4)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
** Code completion
|
** Code completion
|
||||||
*** completion
|
*** completion
|
||||||
@@ -799,6 +813,7 @@ We also need the actual snippets.
|
|||||||
(rust-mode . lsp)
|
(rust-mode . lsp)
|
||||||
(python-mode . lsp)
|
(python-mode . lsp)
|
||||||
(haskell-mode . lsp)
|
(haskell-mode . lsp)
|
||||||
|
(c-mode . lsp)
|
||||||
(c++-mode . lsp))
|
(c++-mode . lsp))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@@ -994,7 +1009,10 @@ Keybinds:
|
|||||||
(define-key pdf-view-mode-map [remap swiper] 'isearch-forward-regexp)
|
(define-key pdf-view-mode-map [remap swiper] 'isearch-forward-regexp)
|
||||||
(define-key pdf-view-mode-map [remap evil-ex] 'pdf-view-goto-page)
|
(define-key pdf-view-mode-map [remap evil-ex] 'pdf-view-goto-page)
|
||||||
(setq-default pdf-view-display-size 'fit-page)
|
(setq-default pdf-view-display-size 'fit-page)
|
||||||
(setq pdf-view-resize-factor 1.1))
|
(setq pdf-view-resize-factor 1.1)
|
||||||
|
:hook
|
||||||
|
(pdf-misc-minor-mode . auto-revert-mode))
|
||||||
|
|
||||||
|
|
||||||
;; load necessary things, when a PDF gets opened
|
;; load necessary things, when a PDF gets opened
|
||||||
(pdf-tools-install)
|
(pdf-tools-install)
|
||||||
|
|||||||
@@ -51,15 +51,17 @@ alias rm='rm -i' # Ask before removal
|
|||||||
alias cp='cp -i' # Ask before removal
|
alias cp='cp -i' # Ask before removal
|
||||||
alias mv='mv -i' # Ask before removal
|
alias mv='mv -i' # Ask before removal
|
||||||
|
|
||||||
alias powershell='PS1="windowsadm@powershell$ " bash'
|
|
||||||
|
|
||||||
|
# tools
|
||||||
alias conservation='cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode'
|
alias conservation='cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode'
|
||||||
|
|
||||||
alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash'
|
alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash'
|
||||||
|
|
||||||
alias nssh='SSH_AUTH_SOCK= ssh'
|
alias nssh='SSH_AUTH_SOCK= ssh'
|
||||||
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
||||||
|
|
||||||
|
# troll
|
||||||
|
alias powershell='PS1="windowsadm@powershell$ " bash'
|
||||||
|
alias mucdai='rm -rf'
|
||||||
|
|
||||||
if [ -f ~/.zshrc_local ]; then
|
if [ -f ~/.zshrc_local ]; then
|
||||||
source ~/.zshrc_local
|
source ~/.zshrc_local
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user