~clean up config
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
(ocaml +lsp)
|
(ocaml +lsp)
|
||||||
(rss +elfeed)
|
(rss +elfeed)
|
||||||
(narrow)
|
(narrow)
|
||||||
(completion)
|
;;(completion)
|
||||||
|
|
||||||
:input
|
:input
|
||||||
;;chinese
|
;;chinese
|
||||||
|
|||||||
@@ -99,9 +99,6 @@ Set the dashboard functions (segments in overall buffer), set the sections of th
|
|||||||
:icon (all-the-icons-octicon "calendar" :face 'font-lock-keyword-face)
|
:icon (all-the-icons-octicon "calendar" :face 'font-lock-keyword-face)
|
||||||
:when (fboundp 'org-agenda)
|
:when (fboundp 'org-agenda)
|
||||||
:action org-agenda)
|
:action org-agenda)
|
||||||
("Check the weather"
|
|
||||||
:icon (all-the-icons-wicon "rain" :face 'font-lock-keyword-face)
|
|
||||||
:action dx:weather)
|
|
||||||
("Jump to bookmark"
|
("Jump to bookmark"
|
||||||
:icon (all-the-icons-octicon "bookmark" :face 'font-lock-keyword-face)
|
:icon (all-the-icons-octicon "bookmark" :face 'font-lock-keyword-face)
|
||||||
:action bookmark-jump)))
|
:action bookmark-jump)))
|
||||||
@@ -545,10 +542,7 @@ General keymap
|
|||||||
Remapping functions that other modules set to default functions.
|
Remapping functions that other modules set to default functions.
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(define-key!
|
(define-key!
|
||||||
[remap compile] #'compile
|
[remap compile] #'compile)
|
||||||
[remap find-file] #'find-file
|
|
||||||
[remap describe-function] #'describe-function
|
|
||||||
[remap describe-variable] #'describe-variable)
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Other
|
** Other
|
||||||
*** Leader
|
*** Leader
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ Shamelessly copied from rosetta code.
|
|||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(defun dx:org/count-sub (str pat)
|
(defun dx:org/count-sub (str pat)
|
||||||
(loop with z = 0 with s = 0 while s do
|
(loop with z = 0 with s = 0 while s do
|
||||||
(when (setf s (search pat str :start2 s))
|
(when (setf s (cl-search pat str :start2 s))
|
||||||
(incf z) (incf s (length pat)))
|
(incf z) (incf s (length pat)))
|
||||||
finally (return z)))
|
finally (return z)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
Reference in New Issue
Block a user