Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Configuration Examples

Akira Komamura edited this page Jun 11, 2018 · 2 revisions

Configuration Examples

Table of contents

Subjects

Emacs Lisp

A frame for writing Emacs Lisp code.

(frame-workflow-define-subject "emacs-lisp"
  :make-frame '(frame-purpose-make-mode-frame 'emacs-lisp-mode))

Web browsing on EXWM

A frame for web browsing (using Firefox) in EXWM.

(frame-workflow-define-subject "web"
  :layout '(progn
             (start-process-shell-command "firefox" nil "firefox")
             (delete-other-windows)))
  • Firefox is started when the frame is created.

Modelines

Frame-workflow ships with a mode line configuration. If you use a different modeline framework like spaceline, you may need to define a configuration.

Spaceline all the icons

This is a configuration for spaceline-all-the-icons.

(spaceline-define-segment frame-workflow
    "The current frame-workflow subject."
    (when-let ((subject (frame-workflow--frame-subject-name)))
      (format "%s %s"
              (propertize (all-the-icons-octicon "browser" :v-adjust 0)
                          'face `(:family ,(all-the-icons-octicon-family)
                                          :height ,(spaceline-all-the-icons--height 1.1)
                                          :inherit))
              (propertize subject 'face '(:height 0.8 :inherit))))
    :tight t
    :when (bound-and-true-p frame-workflow-mode))

To add this segment to your modeline, add the symbol to the call of spaceline-all-the-icons-theme:

(spaceline-all-the-icons-theme 'frame-workflow)