[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Source blocks are indented
From: |
c.buhtz |
Subject: |
Source blocks are indented |
Date: |
Sun, 26 Mar 2023 10:59:52 +0000 |
Hello,
#+begin_src python
import sys
#+end_src
This example shows a python source block in an org(roam) file. Org
always does an indention here of two spaces.
Is there a way to turn this of?
It seems to me this is not the default behavior because I saw some
youtube videos where there is no indention in such blocks.
I'm using Emacs 27 (from Debian 11) with latest org and org-roam. I
minimized my init.el and still can reproduce it.
;; -*- lexical-binding: t; -*-
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;; Initializes the package infrastructure
(package-initialize)
;; === use-package ==
;; use-package to simplify the config file
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure 't)
;; === BASIC setup
(set-default-coding-systems 'utf-8)
;; === EVIL
(use-package evil
:init
(setq evil-want-integration t)
(setq evil-want-keybinding nil)
(setq evil-want-C-i-jump nil)
:config
(evil-mode 1)
;; Use visual line motions even outside of visual-line-mode buffers
(evil-global-set-key 'motion "j" 'evil-next-visual-line)
(evil-global-set-key 'motion "k" 'evil-previous-visual-line)
;; Set "normal" vi-mode in specific buffers
(evil-set-initial-state 'messages-buffer-mode 'normal)
(evil-set-initial-state 'dashboard-mode 'normal)
)
(use-package org)
- Source blocks are indented,
c.buhtz <=