是否有任何片段使emacs使用/ usr/share/vim/vimfiles /中的.vim语法文件来着色文本.像conky这样的许多应用程序都有vim语法文件,比如vim的"conkyrc.vim",但不适用于emacs.那么是否有一种简单的方法来使用这些文件,而不是为vimfiles目录中的每个文件重写一种新的语言模式.
考虑以下使用的org-babel中的perl片段<STDIN>.
** Ans 2
#+begin_src perl :results output
use Math::Trig;
$rad = <STDIN>;
$circumference = 2*pi*$rad;
print "Circumference of circle is $circumference";
#+end_src
Run Code Online (Sandbox Code Playgroud)
是否可以将输入从另一个块传输到此块?
说:
#+begin_src text :name test-input
12.5
#+end_src
Run Code Online (Sandbox Code Playgroud)