Could you provide any base for the assumption that using proportional fonts was the most common way before 1980? My experience tells different.
Random example with text in proportional and code in fixed-width:
Now, what's true in my memory, and supported by peeking into some books, is that: books tend to use only a single type, fixed or proportional, throughout the whole publication. It's safe to assume that this reduced effort in typesetting.
Then again, even back then full listings were usually printed using fixed fonts. IBM's 1965 Fortran Specifications and Operating Procedures for the 1401 is a nice example. All examples / statements embedded in sections are using a proportional font, while (full) listings are made using fixed fonts - after all, that's the way to give an impression as close as possible what a programmer will see on punch card, print out or screen.
Very early documentation even offers another sub-type, where basic text including statements is printed depending on the default style, but all explicit code examples are made to look like programming forms with their fixed width structure. For example, this is seen in the 1960 IBM 1401 Symbolic Programming System Specifications.
Oh, and the 1967 /360 F-Assembler Programmers Guide even toppled all of this by using a fixed font throughout all text, but proportional when it comes to examples(*1).
I purposely picked very early books to show the origins. It continues the same way through the following decades. Likewise I showed IBM manuals only because there's a lot available online. Other manufacturers show the very same classes.
But similar style can be seen when looking at early computer magazines - although the very early ones don't have a lot of listings. One might guess that readers had to get computers before being able to send in programs. Though 'how to write' sections show that formatting was a professional job, not the authors' decision.
Regarding 'Typewriter' usage it should be noted that proportional spaced typewriters existed since the 1880 Hammond. That marvel not only supported proportional or fixed on the same device, but Italics and Bold as well. Those machines (and similar designs) were quite common with professional publishers. Its follow up models were produced until the late 1960s. Of newer origin would be the 1966 IBM Selectric Composer and 1972 MC Executive.
Manassehkatz' observation that use of multiple fonts/spacing became more common with the availability of typesetting systems does add meaning - except computer typesetting is a process that only started with minis and micros in the mid to late 1970s, but already in the early 1960s with mainframe-based typesetting systems (*2).
*1 - The /360 era also marks a point when IBM mostly switched to fixed font only for manual text. This changed again in the late 1980s.
*2 - Almost forgotten today, but those systems were such a big business that even special terminals were developed and manufactured by companies like IBM or Siemens. Newspapers foremost, but book typesetting as well. I still remember the programming for the 8162 type which had to be handled on interface level as three screens due it offering 72 lines of text :)