From 76c9ffeec546c8639192756f7a013a7add73167b Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 5 Aug 2018 10:17:30 +0200 Subject: [PATCH] [Calc] Additional math units inspired by https://florian.adamsky.it/2016/03/31/emacs-calc-for-programmers-and-cs.html. --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 5541428..36f2d8f 100644 --- a/init.el +++ b/init.el @@ -412,6 +412,13 @@ (setq custom-theme-directory (expand-file-name "themes/" emacs-d)) +;; https://florian.adamsky.it/2016/03/31/emacs-calc-for-programmers-and-cs.html +(setq math-additional-units + '((bit nil "Bit") + (byte "8 * bit" "Byte") + (bps "bit / s" "Bit per second")) + math-units-table nil) + ;; * Basic Builtin Packages