Configure sqlite mode, mpd client
This commit is contained in:
parent
96a28d76fa
commit
6de64e79e6
33
config.org
33
config.org
|
|
@ -482,7 +482,7 @@ Install the package, enable it and ensure that it always is installed:
|
|||
(use-package pdf-tools
|
||||
:ensure t
|
||||
;;:hook (pdf-tools-enabled . pdf-view-midnight-minor-mode)
|
||||
::hook (pdf-tools-enabled . pdf-view-themed-minor-mode)
|
||||
:hook (pdf-tools-enabled . pdf-view-themed-minor-mode)
|
||||
;;:hook (pdf-tools-enabled . hide-mode-line-mode)
|
||||
:init
|
||||
(pdf-loader-install)
|
||||
|
|
@ -1487,5 +1487,34 @@ MPDel is an Emacs client for Music Player Daemon (MPD), a flexible, powerful, se
|
|||
Mingus is a frontend for GNU Emacs to the Music Player daemon. The interface closely, though not strictly, resembles that of ncmpc.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package mingus
|
||||
:ensure t)
|
||||
:ensure t
|
||||
:config
|
||||
(define-key mingus-global-map (kbd "<XF86AudioRaiseVolume>") 'mingus-vol-up)
|
||||
(define-key mingus-global-map (kbd "<XF86AudioLowerVolume>") 'mingus-vol-down)
|
||||
)
|
||||
#+END_SRC
|
||||
|
||||
** Sqlite Mode
|
||||
Emacs has a built in sqlite mode to view sqlite database files and modify them. Configure to be a bit nicer
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'sqlite-mode
|
||||
(define-key sqlite-mode-map (kbd "<tab>") 'sqlite-mode-list-data)
|
||||
)
|
||||
;; Hook into find-file, basically allows us to open the sqlite db file directly instead of using sqlite-mode-open-file function
|
||||
(defun sqlite-find-file-hook ()
|
||||
(when (string= (file-name-extension buffer-file-name) "sqlite")
|
||||
(let
|
||||
(
|
||||
(sql-original-buffer-name (buffer-name))
|
||||
(sql-original-buffer-file-name (buffer-file-name))
|
||||
)
|
||||
|
||||
(kill-buffer sql-original-buffer-name)
|
||||
(sqlite-mode-open-file sql-original-buffer-file-name)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(add-hook 'find-file-hook 'sqlite-find-file-hook)
|
||||
|
||||
#+END_SRC
|
||||
|
|
|
|||
Loading…
Reference in New Issue