Now all user config is in spacemacs.org file
This commit is contained in:
77
.spacemacs
77
.spacemacs
@@ -633,82 +633,7 @@ Put your configuration code here, except for variables that should be set
|
||||
before packages are loaded."
|
||||
|
||||
;; load file exported from `~/spacemacs.org' in `dotspacemacs/user-load'
|
||||
(load-file phundrak/uc)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; LaTeX ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(defcustom tex-my-viewer
|
||||
"xreader --fork -s -x \"emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"'\"'\"%{input}\"'\"'\")) (goto-line %{line}))'\""
|
||||
"PDF Viewer for TeX documents. You may want to fork the
|
||||
viewer so that it detects when the same document is launched
|
||||
twice, and persist when Emacs gets closed.
|
||||
|
||||
Simple command:
|
||||
|
||||
xreader --fork
|
||||
|
||||
We can use
|
||||
|
||||
emacsclient --eval '(progn (switch-to-buffer
|
||||
(file-name-nondirectory \"%{input}\"))
|
||||
(goto-line %{line}))'
|
||||
|
||||
to reverse-search a pdf using SyncTeX. Note that the quotes and
|
||||
double-quotes matter and must be escaped appropriately."
|
||||
:safe 'stringp)
|
||||
(add-hook 'doc-view-minor-mode-hook 'auto-revert-mode)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; Eshell ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(setenv "PATH"
|
||||
(concat
|
||||
(concat (getenv "HOME") "/.local/bin") ":"
|
||||
(concat (getenv "HOME") "/go/bin") ":"
|
||||
(concat (getenv "HOME") "/.cargo/bin") ":"
|
||||
(concat (getenv "HOME") "/.pub-cache/bin") ":"
|
||||
(getenv "PATH")))
|
||||
|
||||
(defadvice find-file (around find-files activate)
|
||||
"Also find all files within a list of files. This even works recursively."
|
||||
(if (listp filename)
|
||||
(loop for f in filename do (find-file f wildcards))
|
||||
ad-do-it))
|
||||
(defun eshell-new()
|
||||
"Open a new instance of eshell."
|
||||
(interactive)
|
||||
(eshell 'N))
|
||||
(defalias 'open 'find-file)
|
||||
(defalias 'openo 'find-file-other-window)
|
||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||
(defalias 'list-buffers 'ibuffer)
|
||||
(defmacro with-face (str &rest properties)
|
||||
`(propertize ,str 'face (list ,@properties)))
|
||||
(defun eshell/abbr-pwd ()
|
||||
(let ((home (getenv "HOME"))
|
||||
(path (eshell/pwd)))
|
||||
(cond
|
||||
((string-equal home path) "~")
|
||||
((f-ancestor-of? home path) (concat "~/" (f-relative path home)))
|
||||
(path))))
|
||||
(defun eshell/my-prompt ()
|
||||
(let ((header-bg "#161616"))
|
||||
(concat
|
||||
(with-face (eshell/abbr-pwd) :foreground "#008700")
|
||||
"\n"
|
||||
(if (= (user-uid) 0)
|
||||
(with-face "➜" :foreground "red")
|
||||
(with-face "➜" :foreground "#2345ba"))
|
||||
" ")))
|
||||
(setq eshell-visual-commands
|
||||
'("fish" "zsh" "bash" "tmux" "htop" "top" "vim" "bat" "nano")
|
||||
eshell-visual-subcommands
|
||||
'("git" "log" "l" "diff" "show")
|
||||
eshell-prompt-regexp "^[^#$\n]*[#$] "
|
||||
eshell-prompt-function 'eshell/my-prompt)
|
||||
(eshell-git-prompt-use-theme 'powerline))
|
||||
(load-file phundrak/uc))
|
||||
|
||||
|
||||
;; Do not write anything past this comment. This is where Emacs will
|
||||
|
||||
Reference in New Issue
Block a user