 One of the things with E-Max and my distribution of E-Max that I use, Doom E-Max, is there's so many settings, so many options available to you that it can take a while to get up to speed on everything that you can do inside E-Max. And today I wanted to cover some of the basics regarding fonts and line settings and fringes inside Doom E-Max because some of these settings are pretty obvious but some of them are not obvious and it took me a while to figure out how to do some of the stuff that I'm gonna show you today. So let me pull up my Doom E-Max config, so let me launch Doom E-Max and do space FR for search recent files and if I search for my config.org here and let me zoom in here and Doom E-Max if you do control and the plus symbol that should zoom in for you. And my config file is starting to get rather large especially since it's a literate config and I'm leaving myself notes and other people that come behind me that want to try my config you know I'm leaving a lot of notes here. So it's actually not terribly long my config but you know I've got a lot of extra stuff in it. Let me get back to the top of this. What I'm gonna do is I'm gonna fold this document because we won't need to see most of this but I'm gonna go down here to fonts and since it's a org document if I do it a single tab on fonts here it will unfold the font setting and one of the things that I've kind of struggled with until here recently is just getting my fonts right because there are really five settings that you need to know about within Doom E-Max. Three of them are rather obvious because they are in the default config. Two of them are not very obvious because they're not in the default config but I think a lot of people probably do want to set these so the first three that we need to talk about and these are just notes here because these are not inside the source block of this E-Max Lisp source block here. So these are just comments and I left these as a note for me and others is the Doom font setting. What this does is it sets the standard monospace font that is used for most things in E-Max because most things need to be edited in plain text and of course you need to use a monospace font for that. So make sure you set Doom font which I did here, set Q Doom font to whatever monospace font you prefer. I set mine to source code pro nerd font mono. Now not everything inside E-Max has to be a monospace font or needs to be a monospace font. For example if I look at the EWW web browser inside E-Max you know I'm viewing a web page inside E-Max I don't want the font inside the web browser to necessarily be monospace. I mean if it is that's okay but it would be fine as a variable font. So the next setting you want to set is doom-variable-pitch-font and that's the variable font that is used with some E-Max plugins such as your web browser and I set that to be font family Ubuntu size 15 and lastly the other doom font setting that's there by default in your config well not exactly with my fonts but you will have doom font doom variable pitch font and you will also have doom big font in the default config. The doom big font is just a quick way of making a really large font. You toggle your font to a really large font for presentations. That's typically what it would be and I have this set well let me do it meta x so alt x and if I do a search for big font you can see the command for it is actually doom- big-font-mode. I set a key binding for it for space tb actually I didn't set that key binding that's one of the default doom e-max key binding space tb for space toggle big mode so let me do space tb and there you go that's big font mode it's really big font mode especially since I'm zoomed in but let me zoom back out or let me just toggle that back off so space tb again makes big font mode disables it and makes it go away and I'm back to the normal font size I was using now the next part of my font config these next five or six lines here were a little confusing to me at first because I really wasn't sure what was going on with bold fonts and italicized fonts inside doom e-max because especially in org documents you can make font bold or italicized or emphasized if I do an italic font here on the word related all I need to do is just wrap that in slashes and it should turn to italicized font which it does but in the default doom e-max config it does turn it italicized but it also shows you the the slashes and I couldn't understand why it made it italics but also still showed the slashes why didn't the slashes just go away I didn't like that and the same thing with the bold font so if instead of you know related and being italicized here we did it in bold which means wrap it in asterix so do related and then end it with an asterix it turns bold but it left those asterix there by default and again I didn't like that it didn't make any sense just make the text bold I don't need to see the asterix before and after the word so to get that normal kind of effect what you need to do is make sure that you have enabled both bold and italicized font so you guys see that after the doom theme loads so when I first launched doom e-max after doom loads it's custom themes then I want you to set doom themes enable bold and I want you to toggle that on doom themes enabled italic toggle that on so if you if it's not toggled on then there's no bold text or no italic text so that's how you turn bold and italics off if you don't want them the other thing because in org mode I was seeing the slashes and the asterix and I didn't want to see those I also needed to go to my org setting so if I go down here to org mode here and let me go ahead and unfold that there is a line in here somewhere right here org-high-emphasis-markers and then I toggled that on so what that does is hides the emphasis markers so that's the asterix before and after a bold word or the slash before and after an italicized words and it now hides that stuff this is not here out of the box in doom e-max and it probably should be because I think most people probably would want that effect I can't imagine too many people want to see those extra characters it just seems unnecessary to me to have that displayed and the last two settings I want to talk about are these two here that is custom-set-faces and the commands here font-lock-comment-face what that is is that is settings for comments in your document and then font-lock-keyword-face that is settings for special keywords so if you're working in a programming language for example in c maybe you know for and if those particular statements are have some kind of special significance so to make them stand out they will be italicized and the same thing in other languages I think in Haskell you know certain things like the import command I think is italicized and you know things like that a matter of fact let me just go ahead and launch another instance of doom e-max and I will search for my x-mone-ed config so let me go to the top here and you see import I guess that particular word has special significance in the Haskell programming language so it is now italicized that is not the case out of the box if you don't add these lines yourself you will not have comments italicized and you will not have those special significant keywords and whatever programming language you're working in italicized so I added these lines and you guys probably want to do that as well I also noticed that by adding the comment face italicized command here when I do a meta x these are comments as well right there's not just comments in the document you're working in but also when you do your meta x and it lists out commands and then at the side it has the description these are technically comments this now becomes italicized the same thing with the key binding so if you have something set to a key binding the key binding is italicized all because of this command here one last thing I want to tell you about fonts especially when you're dealing with italicized fonts not every font has an italic face so one of the problems I had initially with sauce code pro I love the font and I know it has an italicized face but it has an italicized face if I use sauce code pro nerd font mono because there's also a sauce code pro nerd font mono italics but originally for some reason I was just using sauce code pro nerd font I didn't specify mono and italics did not work with that font set that way but when I added sauce code pro nerd font mono you know now when I try to use italics italics actually works because sauce code pro nerd font mono has an italics face so if you are using a font you're not seeing italics make sure that font actually has an italicized face and if it does and you're still not seeing it then you probably didn't actually list the font correctly in the setting now the next thing that I'm going to show you guys and this is one that kind of confused me because I wasn't sure what was going on here let me zoom back out here because I want you guys to see this here and let me go ahead and unfold the entire document here go to the top so we have this coloring going on you see the bar on the side that's green in this one spot and blue here and then there's no coloring here and I guess it's there to give some kind of visual representation of what's kind of going on you know what's a code block or what's a comment or what's just an empty line or what's been folded things like that this line is called the fringe and there are actually two fringes available there's one on the right side and one on the left side and by default it is turned on in doom emacs and you know it's kind of it looks good right I mean it's kind of interesting but at the same time it's kind of pointless most of the time like do I really need that line there I could take it or leave it I don't care but I know some people may want to have the ability to turn that off so if you just do a meta x and search for fringe mode and hit enter it's going to ask you what kind of fringe mode do you want do you want the default which is left and right fringes or do you want no fringes right only left only half width and that's just a smaller bar so the bar the bar that is currently using is only about four pixels wide but if I do half width and you know it becomes like a two pixel wide bar so it's really small and then it's a minimal fringe mode I'm not exactly sure what makes it minimal but if I do no fringes you know the fringes go away and it's a it's a cleaner look you know this is typically what I would probably use myself and I know it's not obvious exactly what the heck is going on in that sidebar if you've never heard the term fringe that's what it is an emacs it's called the fringe so just do a meta x fringe dash mode and then select whatever fringe you want to use or just choose no fringes if you wanted to go away now let me go ahead and do a shift and a tab and fold this document back up the next thing I want to talk about is some line settings uh some some other stuff that I wasn't sure about so one of the things with emacs is the lines are truncated by default at least in doom emacs that's the case it may be the case in just standard gnu emacs as well and that's what most people probably want it makes sense as a default but sometimes I don't want the lines to be truncated if a line is you know a thousand characters long I just want it to be on one line sometimes so I set this toggling command here toggle dash truncate dash lines you can imagine what that does it toggles on truncate lines so let me find something that'll make this obvious okay so I have this description right here about centaur tab so there's a a tabbing functionality available in doom emacs I'm not going to talk about that on this video I may talk about it on a future video but that is one line there right it's a very lengthy line but if I do my key binding that I set space tt you know I toggled off truncated lines if I want to turn on truncated lines again space tt and now lines are truncated again and of course that was visually you were able to see when I truncated the lines on and off especially since I have the line numbers on the side I think most people are going to want line numbers but sometimes you don't really need the line numbers or sometimes when you're working especially if you're doing creative writing you would like line numbers and a lot of stuff to go away actually but sometimes you want to turn off the line numbers for some of the stuff you're doing well in doom emacs I believe the command is doom slash toggle dash line dash numbers and they already have a key binding to toggle line numbers on and off this was already available in doom emacs out of the box space tl so if I escape and do space tl it toggles off the line numbers if I do space tl again it toggles line numbers back on and that is really doom emacs specific that that command there the space tl key binding and doom slash toggle dash line dash numbers I believe in standard emacs the package the the program that actually handles line numbers is called linom l-i-n-u-m I guess linom so if I actually do a search for linom yeah there's a linom dash mode I mean I could turn it on to see what happens but it's a separate package and what happens is we get two sets of line numbers one handled by the doom emacs way of doing line numbers and then one handled by linom so let me turn linom back off but I just wanted to demonstrate that for those of you that are using vanilla gnu emacs or maybe some other distribution of emacs other than doom emacs and lastly I just wanted to show you guys one more setting that I found really useful because imagine you do a vertical split here so if I do space w v in doom emacs and you know I've got the same document open which is great maybe I'm writing a book maybe on one side I want this org document that I'm writing my book in maybe I want it folded so I can see all the chapter headings you know see my outline but in this side I want it unfolded so if I do a shift tab to unfold this document well let me get it unfolded both of them unfold you know and that's not the desired effect I want right I want to be able to work on this document separately than this or at least view it separately now if I change something and write you know that makes sense but I don't want every time I fold a section you know for it to be folded in this page as well so how do you accomplish that well how do you accomplish that is there is a command and I had to look this up because this was something I that really bugged me and I dug through the emacs documentation to find this clone-indirect-buffer-other-window that's a very lengthy setting but I added this key binding myself and I set that to space bc so if I go to one of these splits here and I do space bc now these are not tied to each other so now I could go back over here and if I fold this one you see this one now stays unfolded so I don't know if that's something that everybody's going to want to do but I know especially if you're going to do any kind of creative writing using emacs you're going to want the ability to have the same document in a split and two different splits but you know you're going to want to be able to fold one and not the other oh just a little bit about some of the basic settings available to you within do me max now before I go I need to think a few special people I need to think the producers of the show I'm talking about Michael Gabe Corbinian Mitchell Devin Fran arch 55 30 a commie Chuck Claudio Donnie Dylan George Gregory kill of devils Lewis Paul Scott and Willie they're my highest tiered patrons over on patreon without these guys this episode about configuring do me max wouldn't have been possible the show is also brought to you by each and every one of these ladies and gentlemen these are all my supporters over on patreon because this channel is sponsored by you guys the community without you guys I couldn't do this if you'd like to support my work look for distro tube over on patreon all right guys peace