This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*- | |
;; Copyright (c) 2025 Nicolas P. Rougier | |
;; Released under the GNU General Public License 3.0 | |
;; Author: Nicolas P. Rougier <[email protected]> | |
;; URL: https://github.com/rougier/nano-emacs | |
;; This is NANO Emacs in 256 lines, without any dependency | |
;; Usage (command line): emacs -Q -l nano.el -[light|dark] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; hl-block.el --- Highlight logical block at point -*- lexical-binding: t -*- | |
;; Copyright (C) 2025 Nicolas P. Rougier | |
;; Maintainer: Nicolas P. Rougier <[email protected]> | |
;; Package-Requires: ((emacs "27.1")) | |
;; Keywords: convenience | |
;; This file is not part of GNU Emacs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Dual header line is possible by exploiting the tab-bar line that | |
;; sits on top of the header line and is generally hidden. For the | |
;; icon, it has to be precisely cut in top and bottom part and each | |
;; part is concatenated with either the tab-line or header-line. | |
(defun dual-header (top bottom) | |
"This installs a double line header in current buffer using both tab line (TOP) and header line (BOTTOM)." | |
(set-face-attribute 'tab-line (selected-frame) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; make-tab-box.el --- Box with tabs -*- lexical-binding: t -*- | |
;; Copyright (C) 2024 Nicolas P. Rougier | |
;; Maintainer: Nicolas P. Rougier <[email protected]> | |
;; Version: 0.1.0 | |
;; Package-Requires: ((emacs "27.1")) | |
;; Keywords: convenience | |
;; This file is not part of GNU Emacs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; make-box.el --- Box around part of a buffer -*- lexical-binding: t -*- | |
;; Copyright (C) 2024 Nicolas P. Rougier | |
;; Maintainer: Nicolas P. Rougier <[email protected]> | |
;; Version: 0.1.0 | |
;; Package-Requires: ((emacs "27.1")) | |
;; Keywords: convenience | |
;; This file is not part of GNU Emacs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; nano-org-wip.el --- N Λ N O org mode -*- lexical-binding: t -*- | |
;; Copyright (C) 2024 Nicolas P. Rougier | |
;; Maintainer: Nicolas P. Rougier <[email protected]> | |
;; This file is not part of GNU Emacs. | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 3, or (at your option) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'tab-line) | |
(require 'nano-theme) | |
;; Face for inactive tabs and when window not selected | |
;; (set-face-attribute 'mode-line nil | |
;; :foreground (face-foreground 'default) | |
;; :overline (face-foreground 'default) | |
;; :height (face-attribute 'default :height) | |
;; :box nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 Nicolas P. Rougier - BSD 2 Clauses licence | |
# This is an example of 3D projected images with matplotlib using imshow | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.cbook as cbook | |
from matplotlib.path import Path | |
from mpl_toolkits.mplot3d import proj3d | |
from matplotlib.patches import PathPatch | |
import matplotlib.transforms as mtransforms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; nano-agenda.el --- N Λ N O agenda -*- lexical-binding: t -*- | |
;; Copyright (C) 2021-2023 Nicolas P. Rougier <[email protected]> | |
;; Maintainer: Nicolas P. Rougier <[email protected]> | |
;; URL: https://github.com/rougier/nano-agenda | |
;; Version: 0.4.0 | |
;; Package-Requires: ((emacs "27.1")) | |
;; Keywords: applications, org-mode, org-agenda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun org-calendar-face (date) | |
'default) | |
(defun org-calendar-generate-month (year month) | |
(let* ((first (calendar-day-of-week (list month 1 year))) | |
(first (+ (mod (+ (- first 1) 7) 7) 1)) ;; Week starts on Monday | |
(last (+ first (calendar-last-day-of-month month year))) | |
(days "")) | |
(dotimes (row 6) | |
(dotimes (col 7) |
NewerOlder