[emacs] assimilate pdf-tools and deps
authorAmin Bandali <bandali@gnu.org>
Sun, 21 Oct 2018 15:50:44 +0000 (11:50 -0400)
committerAmin Bandali <bandali@gnu.org>
Sun, 21 Oct 2018 15:50:44 +0000 (11:50 -0400)
anzu is not a dependency, but I noticed doom-modeline refers to it
when using isearch (in pdf-view-mode swiper searches through binary
contents of a pdf, so we'll fall back to isearch), resulting in a
warning if it's not present.

.gitignore
.gitmodules
init.org
lib/anzu [new submodule]
lib/pdf-tools [new submodule]
lib/tablist [new submodule]

index 385bb91..9c17b6d 100644 (file)
@@ -1,18 +1,3 @@
-# mpd files
-mpd/*/*/database
-mpd/*/*/log
-mpd/*/*/pid
-mpd/*/*/state
-mpd/*/*/sticker.sql
-
-# ranger files
-ranger/*/*/history
-ranger/*/*/bookmarks
-ranger/*/*/tagged
-
-# ncmpcpp
-ncmpcpp/*/error.log
-
 # getmail oldmail file
 oldmail-*
 
 # getmail oldmail file
 oldmail-*
 
index ba77d0a..c7b0e27 100644 (file)
@@ -7,6 +7,9 @@
 [submodule "alloy-mode"]
        path = lib/alloy-mode
        url = git@github.com:dwwmmn/alloy-mode.git
 [submodule "alloy-mode"]
        path = lib/alloy-mode
        url = git@github.com:dwwmmn/alloy-mode.git
+[submodule "anzu"]
+       path = lib/anzu
+       url = git@github.com:syohex/emacs-anzu.git
 [submodule "async"]
        path = lib/async
        url = git@github.com:jwiegley/emacs-async.git
 [submodule "async"]
        path = lib/async
        url = git@github.com:jwiegley/emacs-async.git
 [submodule "packed"]
        path = lib/packed
        url = git@github.com:emacscollective/packed.git
 [submodule "packed"]
        path = lib/packed
        url = git@github.com:emacscollective/packed.git
+[submodule "pdf-tools"]
+       path = lib/pdf-tools
+       url = git@github.com:politza/pdf-tools.git
+       build-step = make
+       build-step = borg-byte-compile
+       build-step = borg-update-autoloads
+       # pdf-tools-install creates `lisp/epdfinfo', which makes git think
+       # that the submodule is dirty. so, let's ignore the untracked
+       # files of pdf-tools' submodule
+       ignore = untracked
 [submodule "pkg-info"]
        path = lib/pkg-info
        url = git@github.com:lunaryorn/pkg-info.el.git
 [submodule "pkg-info"]
        path = lib/pkg-info
        url = git@github.com:lunaryorn/pkg-info.el.git
 [submodule "smex"]  # used by counsel-M-x
        path = lib/smex
        url = git@github.com:nonsequitur/smex.git
 [submodule "smex"]  # used by counsel-M-x
        path = lib/smex
        url = git@github.com:nonsequitur/smex.git
+[submodule "tablist"]
+       path = lib/tablist
+       url = git@github.com:politza/tablist.git
 [submodule "treepy"]
        path = lib/treepy
        url = git@github.com:volrath/treepy.el.git
 [submodule "treepy"]
        path = lib/treepy
        url = git@github.com:volrath/treepy.el.git
index cfbeea8..4695635 100644 (file)
--- a/init.org
+++ b/init.org
@@ -833,8 +833,8 @@ There's no way I could top that, so I won't attempt to.
 
 #+begin_src emacs-lisp
 (use-package swiper
 
 #+begin_src emacs-lisp
 (use-package swiper
-  :bind (([remap isearch-forward]  . swiper)
-         ([remap isearch-backward] . swiper)))
+  :bind (("C-s" . swiper)
+         ("C-r" . swiper)))
 #+end_src
 
 **** Counsel
 #+end_src
 
 **** Counsel
@@ -1503,6 +1503,26 @@ Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]].
   (set-face-foreground 'highlight-indent-guides-top-character-face "grey40")) ; grey13 is nice too
 #+end_src
 
   (set-face-foreground 'highlight-indent-guides-top-character-face "grey40")) ; grey13 is nice too
 #+end_src
 
+** pdf-tools
+
+#+begin_src emacs-lisp
+(use-package pdf-tools
+  :magic ("%PDF" . pdf-view-mode)
+  :config (pdf-tools-install)
+  :bind
+  (:map pdf-view-mode-map
+        ("C-s" . isearch-forward)
+        ("C-r" . isearch-backward)
+        ("j"   . pdf-view-next-line-or-next-page)
+        ("j"   . pdf-view-previous-line-or-previous-page)))
+#+end_src
+
+** anzu
+
+#+begin_src emacs-lisp
+(use-package anzu)
+#+end_src
+
 * Email
 
 #+begin_src emacs-lisp
 * Email
 
 #+begin_src emacs-lisp
diff --git a/lib/anzu b/lib/anzu
new file mode 160000 (submodule)
index 0000000..e6c56ca
--- /dev/null
+++ b/lib/anzu
@@ -0,0 +1 @@
+Subproject commit e6c56ca8b23ac433f7be58b6f3f50801dd4164e4
diff --git a/lib/pdf-tools b/lib/pdf-tools
new file mode 160000 (submodule)
index 0000000..deb93df
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit deb93df9b555b872db4595b6f47645a93eeb280f
diff --git a/lib/tablist b/lib/tablist
new file mode 160000 (submodule)
index 0000000..c834a84
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit c834a84efb6efa32497efe1e73160fade741b836