Skip to content

Define a group for reuse? #299

Answered by tarsius
kickingvegas asked this question in Q&A
Discussion options

You must be logged in to vote

Use this:

(defconst casual-calc-operators-group
  ["Operators"
   ("+" "add" calc-plus :transient t)
   ("-" "sub" calc-minus :transient t)
   ("*" "mul" calc-times :transient t)
   ("/" "div" calc-divide :transient t)
   ("%" "mod" calc-mod :transient t)])

(defconst casual-calc-navigation-group
  [:class transient-row
   (casual-lib-quit-one)
   (casual-calc-algebraic-entry)
   (casual-calc-pop)
   (casual-calc-undo-suffix)
   (casual-lib-quit-all)])

(transient-define-prefix casual-calc-rounding-tmenu ()
  "Casual rounding functions menu."
  [["Rounding Functions"
    ("r" "Round" calc-round :transient t)
    ("f" "Floor" calc-floor :transient t)
    ("c" "Ceiling" calc-ceiling :transient

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kickingvegas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
- maintainer's bookmark
3 participants