config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

ob-css.el (1519B)


      1 ;;; ob-css.el --- Babel Functions for CSS            -*- lexical-binding: t; -*-
      2 
      3 ;; Copyright (C) 2009-2024 Free Software Foundation, Inc.
      4 
      5 ;; Author: Eric Schulte
      6 ;; Keywords: literate programming, reproducible research
      7 ;; URL: https://orgmode.org
      8 
      9 ;; This file is part of GNU Emacs.
     10 
     11 ;; GNU Emacs is free software: you can redistribute it and/or modify
     12 ;; it under the terms of the GNU General Public License as published by
     13 ;; the Free Software Foundation, either version 3 of the License, or
     14 ;; (at your option) any later version.
     15 
     16 ;; GNU Emacs is distributed in the hope that it will be useful,
     17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19 ;; GNU General Public License for more details.
     20 
     21 ;; You should have received a copy of the GNU General Public License
     22 ;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
     23 
     24 ;;; Commentary:
     25 
     26 ;; Since CSS can't be executed, this file exists solely for tangling
     27 ;; CSS from Org files.
     28 
     29 ;;; Code:
     30 
     31 (require 'org-macs)
     32 (org-assert-version)
     33 
     34 (require 'ob)
     35 
     36 (defvar org-babel-default-header-args:css '())
     37 
     38 (defun org-babel-execute:css (body _params)
     39   "Execute BODY of CSS code.
     40 This function is called by `org-babel-execute-src-block'."
     41   body)
     42 
     43 (defun org-babel-prep-session:css (_session _params)
     44   "Return an error if the :session header argument is set.
     45 CSS does not support sessions."
     46   (error "CSS sessions are nonsensical"))
     47 
     48 (provide 'ob-css)
     49 
     50 ;;; ob-css.el ends here