我看到了引用和使用的示例
#+BEGIN_SRC bash
Run Code Online (Sandbox Code Playgroud)
但是在我的org模式版本(elpa,org 20150316)的菜单中customize-variable org-babel-load-languages,没有"bash"项,只有shell.试图评估代码如
#+BEGIN_SRC bash
ls -l
#+END_SRC
Run Code Online (Sandbox Code Playgroud)
我明白了
org-babel-execute-src-block:bash没有org-babel-execute函数!
我错过了什么?
谢谢.
下面的代码列出了一个图表,我需要在图表中实现图表在垂直(高度)和水平(宽度)方向上的扩展.建议的方法(例如https://docs.flutter.io/flutter/widgets/Row-class.html)将Expanded在Row或中使用Column.
我正在尝试扩展的图表小部件扩展CustomPaint,没有孩子,所有内容都是使用CustomPainter画布绘制的CustomPainter.paint(canvas, size).
这段代码
return new Scaffold(
appBar: new AppBar(
title: new Text(widget.title),
),
body: new Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
'vvvvvvvv:',
),
new RaisedButton(
color: Colors.green,
onPressed: _chartStateChanger,
),
new Text(
'vvvvvvvv:',
),
new Expanded( // Expanded in Column, no expansion vertically
child: new Row(
children: [
new Text('>>>'),
new Expanded(// Expanded in Row, expands horizontally
child: new Chart( // …Run Code Online (Sandbox Code Playgroud) 一般来说,如果它的参数是已知的,是否可以从 init.el 调用交互式函数?
举个具体的例子:在sql包中,有一个交互函数sql-connect。
当调用为
M-x sql-connect
Run Code Online (Sandbox Code Playgroud)
它在小缓冲区中请求连接。接听
my-mysql-localhost-connection1
Run Code Online (Sandbox Code Playgroud)
打开一个带有 mysql 提示的SQL缓冲区,这是我想要的。
我想在 Emacs 启动时在SQL缓冲区中启动连接。但是在我的 init.el 中添加:
(sql-connect 'my-mysql-localhost-connection1)
Run Code Online (Sandbox Code Playgroud)
什么都不做。在这种情况下,对于一般的交互功能(哪些参数是已知的),我试图实现的目标是什么?
谢谢