Compare commits

..

No commits in common. "c81fc52b8cb5ab7c0577e7b621f7d01c86924e0d" and "918396efc678a6c4f55f28b7dab4b4430a70e484" have entirely different histories.

3 changed files with 24 additions and 2 deletions

View File

@ -12,7 +12,7 @@
:straight t :straight t
:defines (company-dabbrev-ignore-case company-dabbrev-downcase) :defines (company-dabbrev-ignore-case company-dabbrev-downcase)
:custom-face :custom-face
;; (company-tooltip-annotation ((t (:inherit completions-annotations :foreground nil)))) (company-tooltip-annotation ((t (:inherit completions-annotations :foreground nil))))
(company-box-selection ((t (:inherit company-tooltip :weight semibold :extend t)))) (company-box-selection ((t (:inherit company-tooltip :weight semibold :extend t))))
:hook (after-init . global-company-mode) :hook (after-init . global-company-mode)
:bind ( :bind (

View File

@ -152,7 +152,7 @@
;; Code Folding ;; Code Folding
(use-package origami (use-package origami
:defer t :defer t
:straight (origami.el :type git :host github :repo "skrytebane/origami.el") :straight t
:bind (("C-<tab>" . origami-toggle-node) :bind (("C-<tab>" . origami-toggle-node)
("C-<iso-lefttab>" . origami-toggle-all-nodes)) ("C-<iso-lefttab>" . origami-toggle-all-nodes))
:hook :hook
@ -199,6 +199,7 @@
:bind ("C-c p" . projectile-command-map) :bind ("C-c p" . projectile-command-map)
:diminish projectile-mode :diminish projectile-mode
:custom ((projectile-completion-system 'ivy)) :custom ((projectile-completion-system 'ivy))
:hook (after-init . projectile-mode)
:init :init
(setq projectile-mode-line-prefix "" (setq projectile-mode-line-prefix ""
projectile-sort-order 'recentf projectile-sort-order 'recentf

21
emacs-client-runner.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# start emacs server if not is running
systemctl --user status emacs > /dev/null 2>&1 || systemctl --user start emacs > /dev/null 2>&1
# if args is -nw or -t run on terminal
if [ "$1" == "-t" ] || [ "$1" == "-nw" ]; then
emacsclient -t
exit
fi
# if no args open new frame
if [ $# -eq 0 ]; then
emacsclient -c -n
emacsclient --eval "(progn (select-frame-set-input-focus (selected-frame)))"
exit
fi
emacsclient -e "(frames-on-display-list \"$DISPLAY\")" &>/dev/null
emacsclient -c -n "$*"