-
Notifications
You must be signed in to change notification settings - Fork 1
/
про-инструменты.el
81 lines (65 loc) · 2.49 KB
/
про-инструменты.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;;; про-инструменты.el --- Разные полезные инструменты -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(require 'use-package)
(require 'установить-из)
;;;; Открыть файл с помощью чего-нибудь
(use-package openwith
:defer t
:ensure t
:defines (openwith-associations)
:functions (openwith-mode)
:config
(openwith-mode t)
(setq openwith-associations '(("\\.pdf\\'" "xdg-open" (file))
("\\.xlsx\\'" "soffice" (file))
("\\.docx\\'" "soffice" (file))
("\\.pptx\\'" "soffice" (file))
("\\.csv\\'" "soffice" (file))
("\\.ods\\'" "soffice" (file))
("\\.xopp\\'" "xournalpp" (file)))))
;;;; Запускалка приложений из системного меню
(use-package app-launcher
:defer t
;:ensure t
:init (установить-из :repo "SebastienWae/app-launcher")
:bind (("s-x" . app-launcher-run-app)))
;;;; REST Client
(use-package restclient
:defer t
:ensure t
:hook
(restclient-mode . display-line-numbers-mode)
:mode ((rx ".http" eos) . restclient-mode))
;;; Мониторинг нагрузки
;; (use-package explain-pause-mode
;; :init (установить-из :repo "lastquestion/explain-pause-mode")
;; :config
;; (explain-pause-mode -1))
;;; Меню действий
(use-package embark
:defer t
:ensure t
:functions (embark-prefix-help-command)
:bind
(("C-." . embark-act) ;; pick some comfortable binding
;; ("C-;" . embark-dwim) ;; good alternative: M-.
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
:init
;; Optionally replace the key help with a completing-read interface
(setq prefix-help-command #'embark-prefix-help-command)
:config
;; Hide the mode line of the Embark live/completions buffers
(add-to-list
'display-buffer-alist
'("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*"
nil
(window-parameters (mode-line-format . none)))))
;; Consult users will also want the embark-consult package.
(use-package embark-consult
:defer t
:ensure t ; only need to install it, embark loads it after consult if found
:after consult
:hook (embark-collect-mode . consult-preview-at-point-mode))
(provide 'про-инструменты)
;;; про-инструменты.el ends here