title: How to always show inline images?
body: <p>I'm trying to work with inline images (e.g. for plotting data by gnuplot), and have the problem: images always inserted as <em>links</em> by default. I need to do some keypresses to "force" emacs to show <em>actual image</em> inline, instead of just file link.</p>
  
  <p>E.g. I start with gnuplot code:</p>
  
  <pre><code>#+BEGIN_SRC gnuplot :file plot.png
  plot sin(x)
  #+END_SRC
  </code></pre>
  
  <p>When I press <code>C-c C-c</code> on this code block, it runs, and shows me results as link to image file:</p>
  
  <pre><code>#+RESULTS:
  [[file:plot.png]]
  </code></pre>
  
  <ul>
  <li>If I press <code>C-c C-x C-v</code> (org-toggle-inline-images) twice -- link does replaced with inline image</li>
  <li>If I run <code>M-x org-redisplay-inline-images</code> -- again, link does replaced with image</li>
  <li>If I run <code>(org-display-inline-images t t)</code> -- again, image is shown</li>
  </ul>
  
  <p>and so on (those options were taken from <a href="https://stackoverflow.com/questions/17621495/emacs-org-display-inline-images">Emacs org-display-inline-images</a> and <a href="https://stackoverflow.com/questions/27129338/inline-images-in-org-mode">Inline images in org-mode</a> questions)</p>
  
  <p>But I don't want to press anything special: I want images to be displayed inline by default. I've found and tried following variables:</p>
  
  <ul>
  <li><code>(setq org-startup-with-inline-images t)</code> in <code>.emacs</code> config</li>
  <li><code>#+STARTUP: inlineimages</code> header</li>
  <li><code>(setq org-display-inline-images t)</code> </li>
  </ul>
  
  <p>But neither got me the behavior I want. I'm puzzled -- do I want something so unnatural?</p>
  
  <p>P.S. Im' using GNU Emacs v26.1 on MacOS X, org mode v9.1.9-65, if it matters</p>
  
  <p>P.P.S. Although it seems like a bug in my emacs/orgmode version, and I'm yet to report it, but meanwhile I've found following trick: <code>(add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append)</code> (thanks to <a href="https://github.com/gregsexton/ob-ipython" rel="noreferrer">ob-ipython</a> authors) -- it fixes issue for me right now. Maybe will be useful for somebody else</p>