News for hackers. Stuff that matters.
Re:Emacs Artist Mode by an_ko on Friday September 25, 2015 @09:46PM (#10281772)
How far can we take this? What is literate programming at the extreme?

I often draw when I need to work out an algorithm in my head. I wish there were a way to embed my doodles in code comments. Stuff like circle geometry are hard to explain without dense pixels. I've tried using various literate programming pre-processors that let me write comments in Markdown/HTML and embed whatever, but it makes my UNIX-minimalism-sense freak out, and it's super awkward having to render my source code to HTML and open a web browser to be able to read the comments properly…

Re:Emacs Artist Mode by brudgers on Friday September 25, 2015 @11:11PM (#10281948)
Emacs org-mode supports a lot of languages [1] and you can mix and match within a file. Howard Abrams literate devops is an interesting example of what org-mode code blocks can do. [2][3]

Org-mode also allows embedding images or source blocks in languages like LaTeX that resolve to rendered images.

[1]: http://orgmode.org/worg/org-contrib/babel/languages.html

[2]: http://www.howardism.org/

[3]: https://www.youtube.com/watch?v=dljNabciEGg

Re:Emacs Artist Mode by dpeck on Friday September 25, 2015 @10:02PM (#10281800)
you might be interested in http://monodraw.helftone.com, lots of diagramming in plain text.
Re:Emacs Artist Mode by sachac on Friday September 25, 2015 @10:03PM (#10281806)
I've used artist-mode with my tablet PC, which works surprisingly well. You can draw with the stylus and everything!

For other ways to produce graphics from text (especially within Emacs), check out the examples in http://doc.norang.ca/org-mode.html#Publishing : ditaa, graphviz, plantuml... Cool stuff. =)

Re:Emacs Artist Mode by joonoro on Saturday September 26, 2015 @02:18AM (#10282305)
+1 for plantuml integration in org-mode. I have a university class teaching UML and it has been very helpful.

To get the true plantuml "UML IDE" experience, have the exported png open in a window (in the emacs sense) side-by-side with the code. Enable 'auto-revert-mode' on the image so that whenever you eval it it gets refreshed. If you run into problems where the image shows up in binary mode after reverting just enable 'auto-image-file-mode' (keeps it in image-mode).

You can also make it more "responsive" by setting the auto-revert-mode interval to something shorter (by default it checks every 5 seconds if the file has changed). I just defined a new 'fast-auto-revert-mode' function where it turns the mode on after let-ting the interval be 1 second, then added that as a hook for 'image-minor-mode-hook'.

Re:Emacs Artist Mode by thom on Saturday September 26, 2015 @05:30AM (#10282628)
You can also combine this with picture-mode[1] which gives a little bit more customisation of characters used. I'm always a bit sad that neither seems to allow you to achieve an extended ASCII 3D look though, e.g:

    ┌╖
    ╘╝
Otherwise emacs would be a brilliant level-designer for various ASCII RPGs of my youth.

[1]: http://www.gnu.org/software/emacs/manual/html_node/emacs/Pic...

Re:Emacs Artist Mode by mrmondo on Saturday September 26, 2015 @03:11AM (#10282403)
It feels strange that I need to install Adobe Flash Player to watch a screencast on Emacs.

Wait... is there an Emacs mode for this?

Re:Emacs Artist Mode by yenda on Saturday September 26, 2015 @05:42AM (#10282646)
I'm surprised people still use it, what is Flash still usefull for ? deploy malwares ?
Re:Emacs Artist Mode by david-given on Saturday September 26, 2015 @07:13AM (#10282753)
Homestar Runner.

Also, Orisinal: http://www.ferryhalim.com/orisinal

Re:Emacs Artist Mode by kenko on Friday September 25, 2015 @10:34PM (#10281882)
I'm more interested in knowing what was used to toggle in and out of the mode that made everything but the comment disappear!
Re:Emacs Artist Mode by jordigh on Friday September 25, 2015 @10:48PM (#10281904)
Narrowing. Read all about it: C-x n C-h

Narrowing to defun is particularly useful. It usually knows what "defun" means in language.

Re:Emacs Artist Mode by cheez on Friday September 25, 2015 @11:22PM (#10281972)
I love Emacs
Re:Emacs Artist Mode by PackageUpgrades on Saturday September 26, 2015 @12:10AM (#10282070)
Don't, you may catch something. RSI appears to be going around.
Re:Emacs Artist Mode by chetanahuja on Saturday September 26, 2015 @01:12AM (#10282181)
Are we doing the flame war thing on Friday night? I mean if we are, I'm up for it. Are we?
Re:Emacs Artist Mode by cheez on Saturday September 26, 2015 @12:53AM (#10282148)
I use Spacemacs, so does that mean I'm safe? :)
Re:Emacs Artist Mode by SZJX on Friday October 02, 2015 @10:04AM (#10318583)
Lol using Emacs doesn't mean you'll have to hit a lot of Ctrl. It allows you to customize everything then obviously Evil is the sensible way to go.
Re:Emacs Artist Mode by endgame on Saturday September 26, 2015 @05:44AM (#10282650)
I have used ditaa[1](warning: sourceforge) with artist-mode to mark some pretty-darn-good-looking system diagrams. It's a pretty impressive piece of work!

[1] http://ditaa.sourceforge.net/

Re:Emacs Artist Mode by craigching on Saturday September 26, 2015 @10:00AM (#10283110)
I couldn't watch the video on my tablet (video is flash), but I found this youtube video that also talks about artist mode:

http://www.youtube.com/watch?v=cIuX87Xo8Fc

Re:Emacs Artist Mode by wz1000 on Saturday September 26, 2015 @07:22AM (#10282770)
This reminds me of TempleOS

https://youtu.be/sm-W4Tzg9-o?t=662

Re:Emacs Artist Mode by gluelogic on Saturday September 26, 2015 @10:46AM (#10283216)
Somewhat off-topic: I have been looking for an ANSI art editor for the terminal (Linux or OS X).

Anyone know of anything?

Re:Emacs Artist Mode by catern on Saturday September 26, 2015 @11:42AM (#10283362)
Um... that's what this post is about? artist-mode is an text art editor.

You don't need to use Emacs as an editor to use the "applications" built on Emacs, if that's your concern. Just as with any new application you'd have to learn how to use it.

Re:Emacs Artist Mode by draaglom on Saturday September 26, 2015 @11:29AM (#10283336)
"figlet" might be what you're looking for.
Re:Emacs Artist Mode by bkanber on Saturday September 26, 2015 @08:40AM (#10282944)
Does anybody know of a similar vim plugin? I personally love ASCII diagrams, but there's quite a bit of friction involved in including them in docblocks.
Re:Emacs Artist Mode by catern on Saturday September 26, 2015 @11:44AM (#10283369)
I'll say what I said in another comment: Isn't it fine to just use Emacs for this purpose? You don't have to use it as a general-purpose text editor if all you want to do with it is make ASCII art. Just as with any new thing, you'd have to learn a bit, but not that much...
Re:Emacs Artist Mode by SZJX on Friday October 02, 2015 @10:06AM (#10318591)
Don't think Vim is much interested in mouse functionalities at all. Just use Emacs to create diagrams. It'll be fine.
Re:Emacs Artist Mode by SZJX on Friday October 02, 2015 @10:03AM (#10318566)
Thought many people already knew it well. A convenient feature of Emacs no doubt.