summaryrefslogtreecommitdiffstats
path: root/.emacs.d/jd/jd-apps.el
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 15:07:07 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 15:07:07 +0200
commit6156f86dd5797de5ea4f912b70d38963c6cf4ad4 (patch)
treed578204262209695d995e3f639076e91dcb85354 /.emacs.d/jd/jd-apps.el
parentef565a486511cbbb86e0d1f80264b3b57d2ac88a (diff)
downloaddotfiles-6156f86dd5797de5ea4f912b70d38963c6cf4ad4.tar.gz
dotfiles-6156f86dd5797de5ea4f912b70d38963c6cf4ad4.zip
New Emacs config and change location of Emacs home dir.
Diffstat (limited to '.emacs.d/jd/jd-apps.el')
-rwxr-xr-x.emacs.d/jd/jd-apps.el87
1 files changed, 87 insertions, 0 deletions
diff --git a/.emacs.d/jd/jd-apps.el b/.emacs.d/jd/jd-apps.el
new file mode 100755
index 0000000..5064ff9
--- /dev/null
+++ b/.emacs.d/jd/jd-apps.el
@@ -0,0 +1,87 @@
1;;; Dotfiles --- Jakub Dlugosz emacs config
2;;; Commentary:
3
4;;; Code:
5
6;; (defun jd/open-new-vterm (&optional jd/vterm-buffer-name)
7;; (interactive)
8;; (let ((buffer-name (generate-new-buffer-name vterm-buffer-name)))
9;; (when jd/vterm-buffer-name
10;; (setq buffer-name jd/vterm-buffer-name))
11;; (switch-to-buffer buffer-name)
12;; (vterm-mode)))
13
14
15(jd/use-package vterm "emacs-vterm"
16 :init
17 (add-to-list 'project-switch-commands '(project-vterm "Vterm") t)
18 (add-to-list 'project-kill-buffer-conditions '(major-mode . vterm-mode))
19 (setq vterm-copy-exclude-prompt t)
20 :config
21 (setq vterm-buffer-name "vterm")
22 ;; (evil-set-initial-state 'vterm-mode 'emacs)
23 (setq vterm-tramp-shells (append '(("ssh" "/bin/bash")) vterm-tramp-shells))
24
25 (jd/leader-key-def "ot" '(jd/open-new-vterm :which-key "Open terminal in current window")))
26
27(jd/use-package all-the-icons-dired "emacs-all-the-icons-dired"
28 :hook (dired-mode . all-the-icons-dired-mode))
29
30;; (jd/use-package dired-ranger nil)
31
32(jd/use-package dired nil
33 :ensure nil
34 :commands (dired dired-jump)
35 :custom ((dired-listing-switches "-agho --group-directories-first"))
36 :config
37 ;; (evil-collection-define-key 'normal 'dired-mode-map
38 ;; "y" 'dired-ranger-copy
39 ;; "p" 'dired-ranger-paste
40 ;; "X" 'dired-ranger-move
41 ;; "h" 'dired-up-directory
42 ;; "t" 'dired-create-empty-file
43 ;; "T" 'dired-toggle-marks
44 ;; "l" 'dired-find-file)
45 (setq dired-kill-when-opening-new-dired-buffer t)
46 ;; (evil-define-key 'normal dired-mode-map (kbd "q") 'kill-current-buffer)
47 )
48
49;; (jd/use-package emms "emacs-emms"
50;; :config
51;; (require 'emms-setup)
52;; (emms-all)
53;; (emms-standard)
54;; (emms-default-players)
55;; (emms-mode-line-disable)
56;; (setq emms-browser-covers 'emms-browser-cache-thumbnail-async)
57;; (emms-add-directory-tree "~/Documents/Music/"))
58
59(jd/use-package pdf-tools "emacs-pdf-tools")
60
61(jd/use-package elfeed "emacs-elfeed"
62 :config
63 (setq elfeed-feeds
64 '(("https://www.reddit.com/r/emacs.rss" emacs)
65 ("https://www.reddit.com/r/gnu.rss" gnu)
66 ("https://stallman.org/rss/rss.xml" stallman)
67 ("https://news.ycombinator.com/rss" hacker-news))))
68
69;; (jd/use-package langtool
70;; :config
71;; (setq langtool-language-tool-jar "/home/jakub/Documents/LanguageTool-6.0/languagetool-commandline.jar")
72;; (setq langtool-default-language "pl-PL"))
73
74;; (jd/leader-key-def
75;; "l" '(:ignore t :which-key "langtool")
76;; "lc" 'langtool-check-buffer
77;; "ld" 'langtool-check-done
78;; "li" 'langtool-interactive-correction)
79
80(jd/use-package mastodon "emacs-mastodon"
81 :config
82 (setq mastodon-active-user "jdlugosz963"
83 mastodon-instance-url "https://fosstodon.org/"))
84
85(provide 'jd-apps)
86
87;;; jd-apps.el ends here