[StumpWM] I don't use emacsclient at the moment
This commit is contained in:
parent
96f5579243
commit
bd129835b9
1 changed files with 2 additions and 24 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
;; Default applicatoins
|
;; Default applicatoins
|
||||||
(defparameter *web-browser* "firefox" "Stores the web browser")
|
(defparameter *web-browser* "firefox" "Stores the web browser")
|
||||||
(defparameter *editor* "emacsclient -c" "Stores the editor")
|
(defparameter *editor* "emacs" "Stores the editor")
|
||||||
(defparameter *terminal* "alacritty" "Stores the terminal emulator")
|
(defparameter *terminal* "alacritty" "Stores the terminal emulator")
|
||||||
(defparameter *file-manager* "dolphin" "Stores the terminal emulator")
|
(defparameter *file-manager* "dolphin" "Stores the terminal emulator")
|
||||||
(defparameter *music-player* "spotify" "Stores the terminal emulator")
|
(defparameter *music-player* "spotify" "Stores the terminal emulator")
|
||||||
|
@ -88,13 +88,6 @@
|
||||||
(setf *window-format* "^B %n ^b %20t "
|
(setf *window-format* "^B %n ^b %20t "
|
||||||
*group-format* "%t")
|
*group-format* "%t")
|
||||||
|
|
||||||
;; program runners
|
|
||||||
|
|
||||||
;;; emacs
|
|
||||||
(defcommand emacs () ()
|
|
||||||
"run emacs"
|
|
||||||
(run-or-raise *editor* '(:class "Emacs")))
|
|
||||||
|
|
||||||
;; root keybindings
|
;; root keybindings
|
||||||
;
|
;
|
||||||
;; browser
|
;; browser
|
||||||
|
@ -301,21 +294,6 @@
|
||||||
;; key for keeping window always on top
|
;; key for keeping window always on top
|
||||||
(define-key *root-map* (kbd "C-T") "toggle-always-on-top")
|
(define-key *root-map* (kbd "C-T") "toggle-always-on-top")
|
||||||
|
|
||||||
;; working with emacsclient
|
|
||||||
(defvar *es-win* nil
|
|
||||||
"to hold the window called emacsclient")
|
|
||||||
(defun save-es-called-win ()
|
|
||||||
(setf *es-win* (current-window)))
|
|
||||||
|
|
||||||
(defun return-es-called-window (win)
|
|
||||||
(let* ((group (window-group win))
|
|
||||||
(frame (window-frame win))
|
|
||||||
(old-frame (tile-group-current-frame group)))
|
|
||||||
(frame-raise-window group frame win)
|
|
||||||
(focus-all win)
|
|
||||||
(unless (eq frame old-frame)
|
|
||||||
(show-frame-indicator group))))
|
|
||||||
|
|
||||||
;; webjumps
|
;; webjumps
|
||||||
(defmacro make-web-jump (name prefix)
|
(defmacro make-web-jump (name prefix)
|
||||||
`(defcommand ,(intern name) (search) ((:rest ,(concatenate 'string name " search: ")))
|
`(defcommand ,(intern name) (search) ((:rest ,(concatenate 'string name " search: ")))
|
||||||
|
@ -383,7 +361,7 @@ script."
|
||||||
;; autostart programs
|
;; autostart programs
|
||||||
|
|
||||||
;; emacs
|
;; emacs
|
||||||
(run-commands "emacs")
|
(run-shell-command "emacs")
|
||||||
|
|
||||||
;; keepassxc
|
;; keepassxc
|
||||||
(run-shell-command "keepassxc-wrapper")
|
(run-shell-command "keepassxc-wrapper")
|
||||||
|
|
Loading…
Reference in a new issue