emacs: many changes
This commit is contained in:
parent
17b80372c8
commit
f3fe0a4b81
@ -30,7 +30,10 @@
|
|||||||
|
|
||||||
;; If you use `org' and don't want your org files in the default location below,
|
;; If you use `org' and don't want your org files in the default location below,
|
||||||
;; change `org-directory'. It must be set before org loads!
|
;; change `org-directory'. It must be set before org loads!
|
||||||
(setq org-directory "~/org")
|
(setq org-directory "~/Nextcloud/org"
|
||||||
|
org-roam-directory "~/Nextcloud/org-roam")
|
||||||
|
|
||||||
|
;; (map! :nv "SPC r" "SPC n r")
|
||||||
|
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
@ -66,12 +69,13 @@
|
|||||||
(map! :desc "Flycheck next error" :nv "g n" #'flycheck-next-error)
|
(map! :desc "Flycheck next error" :nv "g n" #'flycheck-next-error)
|
||||||
(map! :desc "Flycheck previous error" :nv "g N" #'flycheck-previous-error)
|
(map! :desc "Flycheck previous error" :nv "g N" #'flycheck-previous-error)
|
||||||
|
|
||||||
|
(map! :desc "Format and save" :nvi "C-s" #'fd-format-and-save)
|
||||||
|
|
||||||
;; Org-mode custom keybindings
|
;; Org-mode custom keybindings
|
||||||
;; (map! :map org-mode-map :nvi "C-k" #'org-backward-element)
|
(map! :map org-mode-map :nvi "C-k" #'org-backward-element)
|
||||||
;; (map! :map org-mode-map :nvi "C-j" #'org-forward-element)
|
(map! :map org-mode-map :nvi "C-j" #'org-forward-element)
|
||||||
;; (map! :map org-mode-map :nvi "C-h" #'org-up-element)
|
(map! :map org-mode-map :nvi "C-h" #'org-up-element)
|
||||||
;; (map! :map org-mode-map :nvi "C-l" #'org-down-element)
|
(map! :map org-mode-map :nvi "C-l" #'org-down-element)
|
||||||
|
|
||||||
|
|
||||||
;; Spell checking settings
|
;; Spell checking settings
|
||||||
@ -104,6 +108,12 @@
|
|||||||
(message "Dictionary switched from %s to %s" dic change)
|
(message "Dictionary switched from %s to %s" dic change)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
(defun fd-format-and-save()
|
||||||
|
(interactive)
|
||||||
|
(evil-force-normal-state)
|
||||||
|
(+format/buffer)
|
||||||
|
(save-buffer))
|
||||||
|
|
||||||
(add-hook 'tetris-mode-hook #'turn-off-evil-mode)
|
(add-hook 'tetris-mode-hook #'turn-off-evil-mode)
|
||||||
|
|
||||||
;; Make sniping simpler for german keyboard
|
;; Make sniping simpler for german keyboard
|
||||||
@ -113,6 +123,7 @@
|
|||||||
(map! :map evil-snipe-parent-transient-map "," #'evil-snipe-repeat)
|
(map! :map evil-snipe-parent-transient-map "," #'evil-snipe-repeat)
|
||||||
(map! :map evil-snipe-parent-transient-map ";" #'evil-snipe-repeat-reverse)
|
(map! :map evil-snipe-parent-transient-map ";" #'evil-snipe-repeat-reverse)
|
||||||
|
|
||||||
|
|
||||||
;; (when evil-snipe-override-evil-repeat-keys
|
;; (when evil-snipe-override-evil-repeat-keys
|
||||||
;; (evil-define-key 'motion map
|
;; (evil-define-key 'motion map
|
||||||
;; "," 'evil-snipe-repeat
|
;; "," 'evil-snipe-repeat
|
||||||
@ -120,7 +131,7 @@
|
|||||||
|
|
||||||
;; Python settings
|
;; Python settings
|
||||||
;; (add-hook 'python-mode-hook (lambda ()
|
;; (add-hook 'python-mode-hook (lambda ()
|
||||||
;; (setq flycheck-checker 'python-pylint)))
|
;; (setq flycheck-checker 'python-pylint)))
|
||||||
|
|
||||||
;; (add-hook 'pyhon-mode-local-vars-hook
|
;; (add-hook 'pyhon-mode-local-vars-hook
|
||||||
;; (lambda ()
|
;; (lambda ()
|
||||||
@ -138,7 +149,7 @@
|
|||||||
;; (setq org-agenda-files (list "~/org"))
|
;; (setq org-agenda-files (list "~/org"))
|
||||||
;; (custom-set-variables
|
;; (custom-set-variables
|
||||||
;; '(org-directory "~/org")
|
;; '(org-directory "~/org")
|
||||||
;; '(org-agenda-files (list org-directory)))
|
;; '(org-agenda-files (list org-directory)))
|
||||||
|
|
||||||
;; (add-to-list 'org-agenda-files "~/org/anothertest.org" 'append)
|
;; (add-to-list 'org-agenda-files "~/org/anothertest.org" 'append)
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
:lang
|
:lang
|
||||||
;;agda ; types of types of types of types...
|
;;agda ; types of types of types of types...
|
||||||
;;beancount ; mind the GAAP
|
;;beancount ; mind the GAAP
|
||||||
;;(cc +lsp) ; C > C++ == 1
|
(cc) ; C > C++ == 1
|
||||||
;;clojure ; java with a lisp
|
;;clojure ; java with a lisp
|
||||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
;;coq ; proofs-as-programs
|
;;coq ; proofs-as-programs
|
||||||
@ -129,7 +129,7 @@
|
|||||||
;;faust ; dsp, but you get to keep your soul
|
;;faust ; dsp, but you get to keep your soul
|
||||||
;;fsharp ; ML stands for Microsoft's Language
|
;;fsharp ; ML stands for Microsoft's Language
|
||||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||||
;;gdscript ; the language you waited for
|
gdscript ; the language you waited for
|
||||||
;;(go +lsp) ; the hipster dialect
|
;;(go +lsp) ; the hipster dialect
|
||||||
;;(haskell +dante) ; a language that's lazier than I am
|
;;(haskell +dante) ; a language that's lazier than I am
|
||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
@ -139,7 +139,7 @@
|
|||||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;; julia ; a better, faster MATLAB
|
;; julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
;;latex ; writing papers in Emacs has never been so fun
|
latex ; writing papers in Emacs has never been so fun
|
||||||
;;lean ; for folks with too much to prove
|
;;lean ; for folks with too much to prove
|
||||||
;;ledger ; be audit you can be
|
;;ledger ; be audit you can be
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
@ -147,7 +147,7 @@
|
|||||||
;;nim ; python + lisp at the speed of c
|
;;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
|
;;ocaml ; an objective camel
|
||||||
org ; organize your plain life in plain text
|
(org +hugo +roam2) ; organize your plain life in plain text
|
||||||
;;php ; perl's insecure younger brother
|
;;php ; perl's insecure younger brother
|
||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
/home/julian/Nextcloud/org
|
@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
(package! company-quickhelp)
|
(package! company-quickhelp)
|
||||||
|
|
||||||
|
(unpin! org-roam)
|
||||||
|
(package! org-roam-ui)
|
||||||
|
|
||||||
;; To install a package directly from a remote git repo, you must specify a
|
;; To install a package directly from a remote git repo, you must specify a
|
||||||
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||||
;; https://github.com/raxod502/straight.el#the-recipe-format
|
;; https://github.com/raxod502/straight.el#the-recipe-format
|
||||||
|
Loading…
x
Reference in New Issue
Block a user